Explorar el Código

Specify --null before the -T option to avoid the
"tar: -: file name read contains nul character" warning.
It was tested with older tar versions.

Nicolas FRANCOIS hace 20 años
padre
commit
fee62d4ac0
Se han modificado 3 ficheros con 10 adiciones y 1 borrados
  1. 5 0
      ChangeLog
  2. 4 0
      debian/changelog
  3. 1 1
      dpkg-deb/build.c

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2006-07-07  Nicolas François  <nicolas.francois@centraliens.net>
+
+	* 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  <guillem@debian.org>
 
 	* configure.ac: Bump version to 1.13.23~.

+ 4 - 0
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 <guillem@debian.org>  Wed, 21 Jun 2006 18:23:39 +0300
 
 dpkg (1.13.22) unstable; urgency=low

+ 1 - 1
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]);