]> andersk Git - openssh.git/commitdiff
- halex@cvs.openbsd.org 2009/11/22 13:18:00
authordtucker <dtucker>
Fri, 8 Jan 2010 07:50:04 +0000 (07:50 +0000)
committerdtucker <dtucker>
Fri, 8 Jan 2010 07:50:04 +0000 (07:50 +0000)
     [sftp.c]
     make passing of zero-length arguments to ssh safe by
     passing "-<switch>" "<value>" rather than "-<switch><value>"
     ok dtucker@, guenther@, djm@

ChangeLog
sftp.c

index 7a2a0e32295b02a54087d8fc27caa8a1af3be91d..6d6dacd88259faddbcde8646e5028cb31e5f8577 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
      to expand EXPAND_MAX_KEYS, allowing only EXPAND_MAX_KEYS-1 to actually
      work.  Note that nothing in OpenSSH actually uses close to this limit at
      present.  bz#1607 from Jan.Pechanec AT Sun.COM
+   - halex@cvs.openbsd.org 2009/11/22 13:18:00
+     [sftp.c]
+     make passing of zero-length arguments to ssh safe by
+     passing "-<switch>" "<value>" rather than "-<switch><value>"
+     ok dtucker@, guenther@, djm@
 
 20091226
  - (tim) [contrib/cygwin/Makefile] Install ssh-copy-id and ssh-copy-id.1
diff --git a/sftp.c b/sftp.c
index 85e5505b5be38da141d82ff64647c2505ac0e1cd..2ce7cc1e1ef8099d9213fee88c0926a3be6229bf 100644 (file)
--- a/sftp.c
+++ b/sftp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sftp.c,v 1.112 2009/11/20 00:54:01 djm Exp $ */
+/* $OpenBSD: sftp.c,v 1.113 2009/11/22 13:18:00 halex Exp $ */
 /*
  * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
  *
@@ -1719,7 +1719,8 @@ main(int argc, char **argv)
                case 'c':
                case 'i':
                case 'o':
-                       addargs(&args, "-%c%s", ch, optarg);
+                       addargs(&args, "-%c", ch);
+                       addargs(&args, "%s", optarg);
                        break;
                case 'q':
                        showprogress = 0;
This page took 0.048582 seconds and 5 git commands to generate.