Subject: bin/36268: NetBSD gzip error message mismatch with GNU gzip
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <giles.lean@pobox.com>
List: netbsd-bugs
Date: 05/03/2007 12:40:01
>Number:         36268
>Category:       bin
>Synopsis:       NetBSD gzip error message mismatch with GNU gzip
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu May 03 12:40:01 +0000 2007
>Originator:     Giles Lean
>Release:        NetBSD 4.0_BETA2
>Organization:
	
>Environment:
	
	
System: NetBSD amethyst.netherstone.net 4.0_BETA2 NetBSD 4.0_BETA2 (AMETHYST) #8: Tue May 1 22:23:20 EST 2007 unpriv@amethyst.netherstone.net:/usr/local/NetBSD/netbsd-4/obj/sys/arch/i386/compile/AMETHYST i386
Architecture: i386
Machine: i386
>Description:
When NetBSD's gzip sees premature end of file on standard input it
emits a slightly different message to the one GNU gzip prints.

This difference broke a test case in GNU tar 1.16.

GNU gzip prints a blank line, and does not surround (stdin) with
parentheses.
>How-To-Repeat:
$ ./gzip --version
gzip 1.3.9
Copyright (C) 2006 Free Software Foundation, Inc.
Copyright (C) 1993 Jean-loup Gailly.
This is free software.  You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.

Written by Jean-loup Gailly.
$ ./gzip < /dev/null > /dev/null
$ ./gzip -d < /dev/null > /dev/null

gzip: stdin: unexpected end of file
$ /usr/bin/gzip --version
NetBSD gzip 20060927
$ /usr/bin/gzip -d < /dev/null > /dev/null
gzip: (stdin): unexpected end of file
$

>Fix:
	

>Unformatted:
 	Built from 2007-04-29 source.