diff options
Diffstat (limited to 'debian/patches/scp-quoting.patch')
-rw-r--r-- | debian/patches/scp-quoting.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/debian/patches/scp-quoting.patch b/debian/patches/scp-quoting.patch new file mode 100644 index 000000000..239c1b599 --- /dev/null +++ b/debian/patches/scp-quoting.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | Description: Adjust scp quoting in verbose mode | ||
2 | Tweak scp's reporting of filenames in verbose mode to be a bit less | ||
3 | confusing with spaces. | ||
4 | . | ||
5 | This should be revised to mimic real shell quoting. | ||
6 | Author: Nicolas Valcárcel <nvalcarcel@ubuntu.com> | ||
7 | Bug-Ubuntu: https://bugs.launchpad.net/bugs/89945 | ||
8 | Last-Update: 2010-02-27 | ||
9 | |||
10 | Index: b/scp.c | ||
11 | =================================================================== | ||
12 | --- a/scp.c | ||
13 | +++ b/scp.c | ||
14 | @@ -189,8 +189,16 @@ | ||
15 | |||
16 | if (verbose_mode) { | ||
17 | fprintf(stderr, "Executing:"); | ||
18 | - for (i = 0; i < a->num; i++) | ||
19 | - fprintf(stderr, " %s", a->list[i]); | ||
20 | + for (i = 0; i < a->num; i++) { | ||
21 | + if (i == 0) | ||
22 | + fprintf(stderr, " %s", a->list[i]); | ||
23 | + else | ||
24 | + /* | ||
25 | + * TODO: misbehaves if a->list[i] contains a | ||
26 | + * single quote | ||
27 | + */ | ||
28 | + fprintf(stderr, " '%s'", a->list[i]); | ||
29 | + } | ||
30 | fprintf(stderr, "\n"); | ||
31 | } | ||
32 | if ((pid = fork()) == -1) | ||