summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2010-01-08 18:58:05 +1100
committerDarren Tucker <dtucker@zip.com.au>2010-01-08 18:58:05 +1100
commit0c348f5b9eb4ac9f763cb3f55a252d86e2cfc57b (patch)
tree713e66ab780d654662c6510d416e69162785aedd
parent98e5d9a0d3beabc706982260fec70f823ff764b7 (diff)
- dtucker@cvs.openbsd.org 2010/01/04 01:45:30
[sshconnect2.c] Don't escape backslashes in the SSH2 banner. bz#1533, patch from Michal Gorny via Gentoo.
-rw-r--r--ChangeLog4
-rw-r--r--sshconnect2.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 929907961..ac3ca7b02 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -137,6 +137,10 @@
137 - jmc@cvs.openbsd.org 2009/12/29 18:03:32 137 - jmc@cvs.openbsd.org 2009/12/29 18:03:32
138 [sshd_config.5 ssh_config.5] 138 [sshd_config.5 ssh_config.5]
139 sort previous; 139 sort previous;
140 - dtucker@cvs.openbsd.org 2010/01/04 01:45:30
141 [sshconnect2.c]
142 Don't escape backslashes in the SSH2 banner. bz#1533, patch from
143 Michal Gorny via Gentoo.
140 144
14120091226 14520091226
142 - (tim) [contrib/cygwin/Makefile] Install ssh-copy-id and ssh-copy-id.1 146 - (tim) [contrib/cygwin/Makefile] Install ssh-copy-id and ssh-copy-id.1
diff --git a/sshconnect2.c b/sshconnect2.c
index d428ac65f..367f0fc6c 100644
--- a/sshconnect2.c
+++ b/sshconnect2.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sshconnect2.c,v 1.176 2009/12/06 23:41:15 dtucker Exp $ */ 1/* $OpenBSD: sshconnect2.c,v 1.177 2010/01/04 01:45:30 dtucker Exp $ */
2/* 2/*
3 * Copyright (c) 2000 Markus Friedl. All rights reserved. 3 * Copyright (c) 2000 Markus Friedl. All rights reserved.
4 * Copyright (c) 2008 Damien Miller. All rights reserved. 4 * Copyright (c) 2008 Damien Miller. All rights reserved.
@@ -421,7 +421,7 @@ input_userauth_banner(int type, u_int32_t seq, void *ctxt)
421 if (len > 65536) 421 if (len > 65536)
422 len = 65536; 422 len = 65536;
423 msg = xmalloc(len * 4 + 1); /* max expansion from strnvis() */ 423 msg = xmalloc(len * 4 + 1); /* max expansion from strnvis() */
424 strnvis(msg, raw, len * 4 + 1, VIS_SAFE|VIS_OCTAL); 424 strnvis(msg, raw, len * 4 + 1, VIS_SAFE|VIS_OCTAL|VIS_NOSLASH);
425 fprintf(stderr, "%s", msg); 425 fprintf(stderr, "%s", msg);
426 xfree(msg); 426 xfree(msg);
427 } 427 }