]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Put the \001 prefix back on scp error messages when they're sent to
authorSimon Tatham <anakin@pobox.com>
Sat, 28 Apr 2001 17:18:47 +0000 (17:18 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 28 Apr 2001 17:18:47 +0000 (17:18 +0000)
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]

scp.c

diff --git a/scp.c b/scp.c
index ad3341333ecdd3f555625596869d70523a56e503..413cf4c8976d0dd2fc937bdf4a6f4eab3708d506 100644 (file)
--- a/scp.c
+++ b/scp.c
@@ -616,6 +616,7 @@ static void run_err(const char *fmt, ...)
     strcpy(str, "scp: ");
     vsprintf(str+strlen(str), fmt, ap);
     strcat(str, "\n");
+    back->send("\001", 1);            /* scp protocol error prefix */
     back->send(str, strlen(str));
     tell_user(stderr, "%s",str);
     va_end(ap);