Re: svn commit: r199066 - head/usr.bin/gzip

From: Jilles Tjoelker <jilles_at_stack.nl>
Date: Sat, 14 Nov 2009 14:05:24 +0100
On Fri, Nov 13, 2009 at 03:27:44PM -0800, Xin LI wrote:
> The previous fix has introduced an issue that revealed another bug as
> well (gzip -d -c can't decompress large-ish input stream, i.e. something
> like bzip2 -c ObsoleteFiles.inc | gunzip -d -c).  The proposed patch:

>  * Set end_of_file flag if we hit a short read.  This usually saves one
> read after the actual end of file.

A short read does not necessarily mean EOF on a pipe or other
non-regular file.

-- 
Jilles Tjoelker
Received on Sat Nov 14 2009 - 12:24:45 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:58 UTC