On Sat, 27 Sep 2003 19:55:39 -0700, Andrew Farmer muttered: > After a recent upgrade of OpenSSH, ssh seems to be escaping backslashes > in the banner *from the remote host*.
Solved. Hopefully this doesn't break anything... I'm submitting this one to the OpenSSH guys to see if they'll incorporate it. --- openssh-3.7.1p2-old/log.c 2003-09-23 02:24:21 -0700 +++ openssh-3.7.1p2/log.c 2003-09-27 20:16:31 -0700 @@ -393,7 +393,7 @@ } else { vsnprintf(msgbuf, sizeof(msgbuf), fmt, args); } - strnvis(fmtbuf, msgbuf, sizeof(fmtbuf), VIS_SAFE|VIS_OCTAL); + strnvis(fmtbuf, msgbuf, sizeof(fmtbuf), VIS_SAFE|VIS_OCTAL|VIS_NOSLASH); if (log_on_stderr) { snprintf(msgbuf, sizeof msgbuf, "%s\r\n", fmtbuf); write(STDERR_FILENO, msgbuf, strlen(msgbuf)); -- Andrew Farmer [EMAIL PROTECTED]
pgp00000.pgp
Description: PGP signature