Fails: cd /usr/bin; gzip file ; mv file.gz file ; file -z file file: read failed: Undefined error: 0 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 :-) How-To-Repeat: see above
> 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
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 Does this problem still occur?
State Changed From-To: feedback->closed Feedback timeout.