diff options
author | Guillem Jover <guillem@debian.org> | 2014-04-05 17:03:18 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2014-04-21 17:00:28 +0200 |
commit | 14ba15362deea88bb1a4e571bf28e2f79dfb9aad (patch) | |
tree | 068b4f5db6ec920bf9e2d6ee258c24567bc5043d /dpkg-deb | |
parent | 9c049f43b8597ae6241f52aceee0647a4b2c79f3 (diff) | |
download | dpkg-14ba15362deea88bb1a4e571bf28e2f79dfb9aad.tar.gz |
dpkg-deb: Use --no-unquote when using -T to avoid mangling filenames
We get the filenames from find(1), so we should not be letting tar
mangle them, or it might create unexpected results.
Closes: #743687
Reported-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'dpkg-deb')
-rw-r--r-- | dpkg-deb/build.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dpkg-deb/build.c b/dpkg-deb/build.c index 2871234a0..3576bb891 100644 --- a/dpkg-deb/build.c +++ b/dpkg-deb/build.c @@ -599,7 +599,8 @@ do_build(const char *const *argv) m_dup2(p2[1],1); close(p2[0]); close(p2[1]); if (chdir(dir)) ohshite(_("failed to chdir to `%.255s'"), dir); - execlp(TAR, "tar", "-cf", "-", "--format=gnu", "--null", "-T", "-", "--no-recursion", NULL); + execlp(TAR, "tar", "-cf", "-", "--format=gnu", "--null", "--no-unquote", + "-T", "-", "--no-recursion", NULL); ohshite(_("unable to execute %s (%s)"), "tar -cf", TAR); } close(p1[0]); |