From: Wichert Akkerman Date: Wed, 4 Oct 2000 14:44:40 +0000 (+0000) Subject: read trailing zeroes from tar output X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a8be01ab15e80124406cb8fec33a528ce703756;p=dpkg read trailing zeroes from tar output --- diff --git a/ChangeLog b/ChangeLog index e4937d2a..e97c12d1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Oct 4 16:37:08 CEST 2000 Wichert Akkerman + + * main/processarc.c: read trailing zeroes from tar output + Tue 03 Oct 23:13:59 CEST 2000 peter karlsson * po/sv.po: Updated Swedish translation. diff --git a/main/processarc.c b/main/processarc.c index e073df7b..881adbfa 100644 --- a/main/processarc.c +++ b/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);