summaryrefslogtreecommitdiff
path: root/scp.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-03-17 18:07:46 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-03-17 18:07:46 +0000
commitfea7278d901d7ee66b990f9c5d3ef7616c1a9c58 (patch)
tree11e548ca5d4534bb701b1a3ac97945dcf9e5e0b3 /scp.c
parent45b14dbddc244bba8c17d71186c2bc49b355636a (diff)
downloadopenssh-git-fea7278d901d7ee66b990f9c5d3ef7616c1a9c58.tar.gz
- (bal) Fixed scp type casing issue which causes "scp: protocol error:
size not delimited" fatal errors when tranfering.
Diffstat (limited to 'scp.c')
-rw-r--r--scp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scp.c b/scp.c
index 66e46dd2..27a50296 100644
--- a/scp.c
+++ b/scp.c
@@ -547,7 +547,7 @@ syserr: run_err("%s: %s", name, strerror(errno));
#define FILEMODEMASK (S_ISUID|S_ISGID|S_IRWXU|S_IRWXG|S_IRWXO)
snprintf(buf, sizeof buf, "C%04o %lld %s\n",
(u_int) (stb.st_mode & FILEMODEMASK),
- stb.st_size, last);
+ (long long) stb.st_size, last);
if (verbose_mode) {
fprintf(stderr, "Sending file modes: %s", buf);
fflush(stderr);