- (bal) Small fix to scp. %lu vs %ld

This commit is contained in:
Ben Lindstrom 2001-03-19 03:09:40 +00:00
parent 6cabb6fd6c
commit 8feff4542e
2 changed files with 5 additions and 4 deletions

View File

@ -9,8 +9,9 @@
- (djm) Make scp work on systems without 64-bit ints
- tim@mindrot.org 2001/03/18 18:28:39 [defines.h]
move HAVE_LONG_LONG_INT where it works
- Use 'NGROUPS' for NeXT Since 'MAX_NGROUPS' is wrapped up in -lposix
- (bal) Use 'NGROUPS' for NeXT Since 'MAX_NGROUPS' is wrapped up in -lposix
stuff. Change suggested by Mark Miller <markm@swoon.net>
- (bal) Small fix to scp. %lu vs %ld
20010318
- (bal) Fixed scp type casing issue which causes "scp: protocol error:
@ -4610,4 +4611,4 @@
- Wrote replacements for strlcpy and mkdtemp
- Released 1.0pre1
$Id: ChangeLog,v 1.977 2001/03/19 03:01:56 mouring Exp $
$Id: ChangeLog,v 1.978 2001/03/19 03:09:40 mouring Exp $

4
scp.c
View File

@ -551,9 +551,9 @@ syserr: run_err("%s: %s", name, strerror(errno));
(long long) stb.st_size, last);
#else
/* XXX: Handle integer overflow? */
snprintf(buf, sizeof buf, "C%04o %ld %s\n",
snprintf(buf, sizeof buf, "C%04o %lu %s\n",
(u_int) (stb.st_mode & FILEMODEMASK),
(long) stb.st_size, last);
(u_long) stb.st_size, last);
#endif
if (verbose_mode) {