From jhs@jhs.muc.de  Tue Jan 26 15:27:41 1999
Received: from slarti.muc.de (slarti.muc.de [193.174.4.10])
          by hub.freebsd.org (8.8.8/8.8.8) with SMTP id PAA16842
          for <FreeBSD-gnats-submit@freebsd.org>; Tue, 26 Jan 1999 15:27:40 -0800 (PST)
          (envelope-from jhs@jhs.muc.de)
Received: (qmail 17346 invoked from network); 26 Jan 1999 23:26:30 -0000
Received: from jhs.muc.de (193.174.4.84)
  by slarti.muc.de with SMTP; 26 Jan 1999 23:26:30 -0000
Received: (from jhs@localhost)
	by jhs.muc.de (8.8.8/8.8.8) id UAA02974;
	Tue, 26 Jan 1999 20:45:43 GMT
	(envelope-from jhs)
Message-Id: <199901262045.UAA02974@jhs.muc.de>
Date: Tue, 26 Jan 1999 20:45:43 GMT
From: jhs@FreeBSD.ORG
Reply-To: jhs@FreeBSD.ORG
To: FreeBSD-gnats-submit@freebsd.org
Subject: Fails: cd /usr/bin; gzip file ;  mv file.gz file ; file -z file
X-Send-Pr-Version: 3.2

>Number:         9711
>Category:       bin
>Synopsis:       Fails: cd /usr/bin; gzip file ;  mv file.gz file ; file -z file
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 26 15:30:01 PST 1999
>Closed-Date:    Sun Jun 02 04:45:48 PDT 2002
>Last-Modified:  Sun Jun 02 04:45:48 PDT 2002
>Originator:     Julian H. Stacey
>Release:        FreeBSD 2.2.8-RELEASE i386
>Organization:
>Environment:

	2.2.8 Rel.

>Description:

	Fails: cd /usr/bin; gzip file ;  mv file.gz file ; file -z file
	file: read failed: Undefined error: 0

>How-To-Repeat:

	see above

>Fix:
	
	Don't know !

I've compressed all the bins on my laptop system to save space, (inc X )
then noticed this oddity.  of course, my kernel does have gzip support :-)

>Release-Note:
>Audit-Trail:

From: jin@george.lbl.gov
To: FreeBSD-gnats-submit@FreeBSD.ORG, jhs@FreeBSD.ORG
Cc:  
Subject: Re: bin/9711: Fails: cd /usr/bin; gzip file ;  mv file.gz file ; file -z file
Date: Tue, 26 Jan 1999 16:03:36 -0800 (PST)

 >         Fails: cd /usr/bin; gzip file ;  mv file.gz file ; file -z file
 >         file: read failed: Undefined error: 0
 
 It looks ok to me. Have you ungzip the file.gz to see if it corruptted?
 
 	-Jin
 
 # uname
 FreeBSD 2.2.8-RELEASE #0: Mon Dec 21 12:22:42 PST 1998
 209 /usr/bin: cp file /tmp
 210 /usr/bin: cd /tmp
 211 /tmp: gzip file
 212 /tmp: mv file.gz file
 213 /tmp: ./file file
 file: gzip compressed data, deflated, original filename, last modified: Tue Jan 26 16:00:01 1999, os: Unix

From: adrian@creative.net.au
To: freebsd-gnats-submit@freebsd.org, jhs@freebsd.org
Cc:  
Subject: Re: bin/9711: Fails: cd /usr/bin; gzip file ; mv file.gz file
Date: Sat, 26 Feb 2000 07:37:16 +0800

 After some investigation, this fails because for files larger than
 HOWMANY bytes. This happens because it can't pass gzip a full file,
 and gzip gives a 'unexpected EOF', kills the pipe, and this gives
 the unexpected read error.
 
 The solution for this is a more clever way of unzipping the first
 part of a file - perhaps gzip's behaviour changed in the past?
 
 Jointly hacked on by: Dan Papasian <bugg@bugg.strangled.net>
                       Adrian Chadd <adrian@freebsd.org>
 
State-Changed-From-To: open->feedback 
State-Changed-By: iedowse 
State-Changed-When: Sat Jan 19 14:54:25 PST 2002 
State-Changed-Why:  

Does this problem still occur? 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=9711 
State-Changed-From-To: feedback->closed 
State-Changed-By: iedowse 
State-Changed-When: Sun Jun 2 04:45:32 PDT 2002 
State-Changed-Why:  

Feedback timeout. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=9711 
>Unformatted:
