Sfoglia il codice sorgente

read trailing zeroes from tar output

Wichert Akkerman 26 anni fa
parent
commit
1a8be01ab1
2 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 4 0
      ChangeLog
  2. 1 0
      main/processarc.c

+ 4 - 0
ChangeLog

@@ -1,3 +1,7 @@
+Wed Oct  4 16:37:08 CEST 2000 Wichert Akkerman <wakkerma@debian.org> 
+
+  * main/processarc.c: read trailing zeroes from tar output
+
 Tue 03 Oct 23:13:59 CEST 2000 peter karlsson <peterk@debian.org>
 
   * po/sv.po: Updated Swedish translation.

+ 1 - 0
main/processarc.c

@@ -531,6 +531,7 @@ void process_archive(const char *filename) {
   }
   tmpf= tc.backendpipe;
   tc.backendpipe= 0;
+  while (getc(tmpf) != EOF) ; /* zap possible trailing zeros */
   fclose(tmpf);
   waitsubproc(c1,BACKEND " --fsys-tarfile",1);