Bug#538187: [Fwd: Bug#538187: gzip doesn't call close() when writing to stdout]

2009-07-29 Thread Jim Meyering
Bdale Garbee wrote: > This patch proposed by a user of my Debian packaging of gzip seems like > a reasonable addition. Opinions? Good catch. However, there are many exit points, not just that one at the end of main. This patch ensures that no matter which one is taken, that close is performed an

Bug#538187: gzip doesn't call close() when writing to stdout

2009-07-23 Thread Mark Kidwell
Package: gzip Version: 1.3.12-6 Severity: important Tags: patch When gzip is compressing / decompressing regular files, it checks the return status of close on the outfile. But when compressing / decompressing to stdout, it doesn't call close before exiting. This can lead to undetectable write err