Bandaid to make "gzip file1 file2 ..." set the decompression lengths correctly
authorManuel Novoa III <mjn3@codepoet.org>
Wed, 2 Mar 2005 04:10:46 +0000 (04:10 -0000)
committerManuel Novoa III <mjn3@codepoet.org>
Wed, 2 Mar 2005 04:10:46 +0000 (04:10 -0000)
in the 2nd and later headers.  But this and gunzip really need to be rewritten.

archival/gzip.c

index 56d4d92780d149155173fdd5475d883d9c76bf0b..0c104cfc6dc949382e32edbf00ab41ef87338356 100644 (file)
@@ -1251,6 +1251,7 @@ int gzip_main(int argc, char **argv)
                for (i = optind; i < argc; i++) {
                        char *path = NULL;
 
+                       clear_bufs();
                        if (strcmp(argv[i], "-") == 0) {
                                time_stamp = 0;
                                ifile_size = -1L;