From: Nicolas FRANCOIS Date: Fri, 7 Jul 2006 20:43:36 +0000 (+0000) Subject: Specify --null before the -T option to avoid the X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fee62d4ac0e10878eb1f2e951c9417a1886d317d;p=dpkg Specify --null before the -T option to avoid the "tar: -: file name read contains nul character" warning. It was tested with older tar versions. --- diff --git a/ChangeLog b/ChangeLog index 0c512288..020ed1dc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-07-07 Nicolas François + + * dpkg-deb/build.c: Specify --null before the -T option to avoid + the "tar: -: file name read contains nul character" warning. + 2006-06-21 Guillem Jover * configure.ac: Bump version to 1.13.23~. diff --git a/debian/changelog b/debian/changelog index 2e6c66eb..8bc293c5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -15,6 +15,10 @@ dpkg (1.13.23~) UNRELEASED; urgency=low * Basque (Piarres Beobide). Closes: #375118 * Russian (Yuri Kozlov). Closes: #376746 + [ Nicolas François ] + * Specify --null before the -T tar's option to avoid the "tar: -: file name + read contains nul character" warning. Closes: #376351, #375749, #376724 + -- Guillem Jover Wed, 21 Jun 2006 18:23:39 +0300 dpkg (1.13.22) unstable; urgency=low diff --git a/dpkg-deb/build.c b/dpkg-deb/build.c index 41a5fdc7..6c7fc3f0 100644 --- a/dpkg-deb/build.c +++ b/dpkg-deb/build.c @@ -394,7 +394,7 @@ void do_build(const char *const *argv) { m_dup2(p1[0],0); close(p1[0]); close(p1[1]); m_dup2(p2[1],1); close(p2[0]); close(p2[1]); if (chdir(directory)) ohshite(_("failed to chdir to `%.255s'"),directory); - execlp(TAR,"tar","-cf", "-", "-T", "-", "--null", "--no-recursion", (char*)0); + execlp(TAR,"tar","-cf", "-", "--null", "-T", "-", "--no-recursion", (char*)0); ohshite(_("failed to exec tar -cf")); } close(p1[0]);