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.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/patches/scp-quoting.patch b/debian/patches/scp-quoting.patch
new file mode 100644
index 000000000..80c1b2a24
--- /dev/null
+++ b/debian/patches/scp-quoting.patch
@@ -0,0 +1,23 @@
1Index: b/scp.c
2===================================================================
3--- a/scp.c
4+++ b/scp.c
5@@ -168,8 +168,16 @@
6
7 if (verbose_mode) {
8 fprintf(stderr, "Executing:");
9- for (i = 0; i < a->num; i++)
10- fprintf(stderr, " %s", a->list[i]);
11+ for (i = 0; i < a->num; i++) {
12+ if (i == 0)
13+ fprintf(stderr, " %s", a->list[i]);
14+ else
15+ /*
16+ * TODO: misbehaves if a->list[i] contains a
17+ * single quote
18+ */
19+ fprintf(stderr, " '%s'", a->list[i]);
20+ }
21 fprintf(stderr, "\n");
22 }
23 if ((pid = fork()) == -1)