diff options
author | Colin Watson <cjwatson@debian.org> | 2010-02-27 14:05:10 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2010-02-27 14:05:10 +0000 |
commit | 8dcc7c5ef45cf5032dca7a308ffe17d3935e62d5 (patch) | |
tree | 2e0d8058bdfc24a60a20c5bcbfd1075ef1048ff3 /debian/patches/scp-quoting.patch | |
parent | e44a1fb6e8e59e67e5c8b6e83c0d8566d146aad9 (diff) |
Convert to source format 3.0 (quilt).
Diffstat (limited to 'debian/patches/scp-quoting.patch')
-rw-r--r-- | debian/patches/scp-quoting.patch | 23 |
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 @@ | |||
1 | Index: 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) | ||