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

Jilles Tjoelker jilles at
Sat Nov 14 13:24:46 UTC 2009

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 | 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

More information about the freebsd-current mailing list