From owner-freebsd-current@FreeBSD.ORG Sat Nov 14 13:24:45 2009 Return-Path: Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E326F1065670 for ; Sat, 14 Nov 2009 13:24:45 +0000 (UTC) (envelope-from jilles@crab.stack.nl) Received: from crab.stack.nl (crab.stack.nl [131.155.140.134]) by mx1.freebsd.org (Postfix) with ESMTP id AADCF8FC1C for ; Sat, 14 Nov 2009 13:24:45 +0000 (UTC) Received: by crab.stack.nl (Postfix, from userid 1677) id A3DC75C53; Sat, 14 Nov 2009 14:05:24 +0100 (CET) Date: Sat, 14 Nov 2009 14:05:24 +0100 From: Jilles Tjoelker To: d@delphij.net Message-ID: <20091114130524.GA35115@stack.nl> References: <200911090237.nA92b2m7005471__19254.880565177$1257734275$gmane$org@svn.freebsd.org> <867htvhygy.fsf@gmail.com> <4AFDDEA1.70900@delphij.net> <4AFDE27F.1070406@delphij.net> <4AFDEB70.5080807@delphij.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4AFDEB70.5080807@delphij.net> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Anonymous , freebsd-current@FreeBSD.ORG, matthew green Subject: Re: svn commit: r199066 - head/usr.bin/gzip X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Nov 2009 13:24:46 -0000 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