summaryrefslogtreecommitdiff
path: root/debian/patches/scp-quoting.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/scp-quoting.patch')
-rw-r--r--debian/patches/scp-quoting.patch12
1 files changed, 6 insertions, 6 deletions
diff --git a/debian/patches/scp-quoting.patch b/debian/patches/scp-quoting.patch
index 1ad0d11e2..2efc40e07 100644
--- a/debian/patches/scp-quoting.patch
+++ b/debian/patches/scp-quoting.patch
@@ -1,4 +1,4 @@
1From eca335b47f5cf4adfc64cd17096f83d546fa91da Mon Sep 17 00:00:00 2001 1From 119936d7b64829f81cbc84c2e81bf23373c6ed37 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Nicolas=20Valc=C3=A1rcel?= <nvalcarcel@ubuntu.com> 2From: =?UTF-8?q?Nicolas=20Valc=C3=A1rcel?= <nvalcarcel@ubuntu.com>
3Date: Sun, 9 Feb 2014 16:09:59 +0000 3Date: Sun, 9 Feb 2014 16:09:59 +0000
4Subject: Adjust scp quoting in verbose mode 4Subject: Adjust scp quoting in verbose mode
@@ -17,24 +17,24 @@ Patch-Name: scp-quoting.patch
17 1 file changed, 10 insertions(+), 2 deletions(-) 17 1 file changed, 10 insertions(+), 2 deletions(-)
18 18
19diff --git a/scp.c b/scp.c 19diff --git a/scp.c b/scp.c
20index 0bdd7cb..51bc2b7 100644 20index 43ca3fa..4a7f73a 100644
21--- a/scp.c 21--- a/scp.c
22+++ b/scp.c 22+++ b/scp.c
23@@ -190,8 +190,16 @@ do_local_cmd(arglist *a) 23@@ -192,8 +192,16 @@ do_local_cmd(arglist *a)
24 24
25 if (verbose_mode) { 25 if (verbose_mode) {
26 fprintf(stderr, "Executing:"); 26 fprintf(stderr, "Executing:");
27- for (i = 0; i < a->num; i++) 27- for (i = 0; i < a->num; i++)
28- fprintf(stderr, " %s", a->list[i]); 28- fmprintf(stderr, " %s", a->list[i]);
29+ for (i = 0; i < a->num; i++) { 29+ for (i = 0; i < a->num; i++) {
30+ if (i == 0) 30+ if (i == 0)
31+ fprintf(stderr, " %s", a->list[i]); 31+ fmprintf(stderr, " %s", a->list[i]);
32+ else 32+ else
33+ /* 33+ /*
34+ * TODO: misbehaves if a->list[i] contains a 34+ * TODO: misbehaves if a->list[i] contains a
35+ * single quote 35+ * single quote
36+ */ 36+ */
37+ fprintf(stderr, " '%s'", a->list[i]); 37+ fmprintf(stderr, " '%s'", a->list[i]);
38+ } 38+ }
39 fprintf(stderr, "\n"); 39 fprintf(stderr, "\n");
40 } 40 }