Bug#505378: Debian-patch
Edited the posted gentoo-patch to work with the current revision in
lenny/squeeze. Tested and working with the example provided by the
original reporter.
Please put this in? :)
Øyvind Hvidsten
diff -dupr openssh-5.1p1.old/sshconnect2.c openssh-5.1p1/sshconnect2.c
--- openssh-5.1p1.old/sshconnect2.c 2009-03-02 15:03:04.000000000 +0100
+++ openssh-5.1p1/sshconnect2.c 2009-03-02 15:04:28.000000000 +0100
@@ -442,7 +442,7 @@ input_userauth_banner(int type, u_int32_
if (len > 65536)
len = 65536;
msg = xmalloc(len * 4 + 1); /* max expansion from strnvis() */
- strnvis(msg, raw, len * 4 + 1, VIS_SAFE|VIS_OCTAL);
+ strnvis(msg, raw, len * 4 + 1, VIS_SAFE|VIS_OCTAL|VIS_NOSLASH);
msg[len*4] = '\0';
fprintf(stderr, "%s", msg);
xfree(msg);
Reply to: