diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | scp.c | 8 |
2 files changed, 10 insertions, 1 deletions
@@ -6,6 +6,7 @@ | |||
6 | - markus@cvs.openbsd.org 2001/03/18 12:07:52 | 6 | - markus@cvs.openbsd.org 2001/03/18 12:07:52 |
7 | [auth-options.c] | 7 | [auth-options.c] |
8 | ignore permitopen="host:port" if AllowTcpForwarding==no | 8 | ignore permitopen="host:port" if AllowTcpForwarding==no |
9 | - (djm) Make scp work on systems without 64-bit ints | ||
9 | 10 | ||
10 | 20010318 | 11 | 20010318 |
11 | - (bal) Fixed scp type casing issue which causes "scp: protocol error: | 12 | - (bal) Fixed scp type casing issue which causes "scp: protocol error: |
@@ -4605,4 +4606,4 @@ | |||
4605 | - Wrote replacements for strlcpy and mkdtemp | 4606 | - Wrote replacements for strlcpy and mkdtemp |
4606 | - Released 1.0pre1 | 4607 | - Released 1.0pre1 |
4607 | 4608 | ||
4608 | $Id: ChangeLog,v 1.974 2001/03/19 00:13:46 mouring Exp $ | 4609 | $Id: ChangeLog,v 1.975 2001/03/19 01:45:02 djm Exp $ |
@@ -545,9 +545,17 @@ syserr: run_err("%s: %s", name, strerror(errno)); | |||
545 | goto next; | 545 | goto next; |
546 | } | 546 | } |
547 | #define FILEMODEMASK (S_ISUID|S_ISGID|S_IRWXU|S_IRWXG|S_IRWXO) | 547 | #define FILEMODEMASK (S_ISUID|S_ISGID|S_IRWXU|S_IRWXG|S_IRWXO) |
548 | #ifdef HAVE_INT64_T | ||
548 | snprintf(buf, sizeof buf, "C%04o %lld %s\n", | 549 | snprintf(buf, sizeof buf, "C%04o %lld %s\n", |
549 | (u_int) (stb.st_mode & FILEMODEMASK), | 550 | (u_int) (stb.st_mode & FILEMODEMASK), |
550 | (long long) stb.st_size, last); | 551 | (long long) stb.st_size, last); |
552 | #else | ||
553 | /* XXX: Handle integer overflow? */ | ||
554 | snprintf(buf, sizeof buf, "C%04o %ld %s\n", | ||
555 | (u_int) (stb.st_mode & FILEMODEMASK), | ||
556 | (long) stb.st_size, last); | ||
557 | #endif | ||
558 | |||
551 | if (verbose_mode) { | 559 | if (verbose_mode) { |
552 | fprintf(stderr, "Sending file modes: %s", buf); | 560 | fprintf(stderr, "Sending file modes: %s", buf); |
553 | fflush(stderr); | 561 | fflush(stderr); |