gzip: fix bug with -l output to pipes
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 20 Apr 2016 00:43:09 +0000 (17:43 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 20 Apr 2016 00:43:55 +0000 (17:43 -0700)
commit3557cd57906915eb9c990b5f386e25c395592643
tree79199522a5d0fe2584f6a928d59835cb2dc9f681
parenta420fbafe812f9584f4e71cf3bd42f222bae74c8
gzip: fix bug with -l output to pipes

Problem reported by Christian Franke via Eric Blake in:
http://bugs.gnu.org/23314
* NEWS: Mention this.
* gzip.c (main): Do not close stdout twice when given -l.
Instead, -l now just fflushes stdout, so that fdatasync
can synchronize it if --synchronize is also specified.
* tests/list: New test case.
* tests/Makefile.am (TESTS): Add it.
NEWS
gzip.c
tests/Makefile.am
tests/list [new file with mode: 0755]