Summary: | Fails: cd /usr/bin; gzip file ; mv file.gz file ; file -z file | ||
---|---|---|---|
Product: | Base System | Reporter: | jhs <jhs> |
Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | ||
Priority: | Normal | ||
Version: | 2.2.8-RELEASE | ||
Hardware: | Any | ||
OS: | Any |
Description
jhs
1999-01-26 23:30:01 UTC
> 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. |