Sfoglia il codice sorgente

reinstate reading of trailing zeroes

Wichert Akkerman 25 anni fa
parent
commit
e55e763b77
2 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  1. 6 0
      ChangeLog
  2. 1 0
      main/processarc.c

+ 6 - 0
ChangeLog

@@ -1,3 +1,9 @@
+Wed Dec 20 12:50:55 CET 2000 Wichert Akkerman <wakkerma@debian.org>
+
+  * main/processarc.c: revert change from Adam: reading the trailing
+    zeroes is essential, not reading them can give us a SIGPIPE
+    on extracting.
+
 Wed Dec 20 02:41:39 CST 2000 Adam Heath <doogie@debian.org>
 
   * dpkg-deb/build.c, dpkg-deb/extract.c, dpkg-deb/info.c,

+ 1 - 0
main/processarc.c

@@ -525,6 +525,7 @@ void process_archive(const char *filename) {
       ohshite(_("corrupted filesystem tarfile - corrupted package archive"));
     }
   }
+  fd_null_copy(tc.backendpipe,-1,_("dpkg-deb: zap possible trailing zeros"));
   close(tc.backendpipe);
   waitsubproc(c1,BACKEND " --fsys-tarfile",1);