- (bal) Fixed scp type casing issue which causes "scp: protocol error:

size not delimited" fatal errors when tranfering.
This commit is contained in:
Ben Lindstrom 2001-03-17 18:07:46 +00:00
parent 45b14dbddc
commit fea7278d90
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
20010318
- (bal) Fixed scp type casing issue which causes "scp: protocol error:
size not delimited" fatal errors when tranfering.
20010317
- Support usrinfo() on AIX. Based on patch from Gert Doering
<gert@greenie.muc.de>
@ -4586,4 +4590,4 @@
- Wrote replacements for strlcpy and mkdtemp
- Released 1.0pre1
$Id: ChangeLog,v 1.968 2001/03/17 01:15:38 mouring Exp $
$Id: ChangeLog,v 1.969 2001/03/17 18:07:46 mouring Exp $

2
scp.c
View File

@ -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);