mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-22 06:38:37 -05:00
Put the \001 prefix back on scp error messages when they're sent to
the server. (Not sure _why_ they're sent to the server; scp is weird.) It may be pointless when sent to the screen, which is why I removed it, but it's extremely pointful on the wire :-( [originally from svn r1090]
This commit is contained in:
parent
321adcb4b9
commit
d27112ea87
1
scp.c
1
scp.c
@ -616,6 +616,7 @@ static void run_err(const char *fmt, ...)
|
|||||||
strcpy(str, "scp: ");
|
strcpy(str, "scp: ");
|
||||||
vsprintf(str+strlen(str), fmt, ap);
|
vsprintf(str+strlen(str), fmt, ap);
|
||||||
strcat(str, "\n");
|
strcat(str, "\n");
|
||||||
|
back->send("\001", 1); /* scp protocol error prefix */
|
||||||
back->send(str, strlen(str));
|
back->send(str, strlen(str));
|
||||||
tell_user(stderr, "%s",str);
|
tell_user(stderr, "%s",str);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user