Subject: bin/32933: gzip -tv reports (some?) truncated files as OK
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: Thomas Klausner <wiz@NetBSD.org>
List: netbsd-bugs
Date: 02/26/2006 14:45:00
>Number: 32933
>Category: bin
>Synopsis: gzip -tv reports (some?) truncated files as OK
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Feb 26 14:45:00 +0000 2006
>Originator: Thomas Klausner
>Release: NetBSD 3.99.15
>Organization:
>Environment:
Architecture: i386
Machine: i386
>Description:
I accidentally canceled a download and ended up with an incomplete file.
gzip is both happy and unhappy about it:
# gzip -tv gngeo-0.6.10.tar.gz
gzip: gngeo-0.6.10.tar.gz: unexpected end of file
gngeo-0.6.10.tar.gz: OK
# echo $?
1
# tar tvzf gngeo-0.6.10.tar.gz
...
gzip: (stdin): unexpected end of file
...
tar: End of archive volume 1 reached
tar: tar vol 1, 61 files, 2036802 bytes read, 0 bytes written in 1 secs (2036802 bytes/sec)
tar: Unexpected EOF on archive file
The "OK" line shouldn't be there.
GNU gzip 1.3.5 on the same file reports:
gngeo-0.6.10.tar.gz:
gzip: gngeo-0.6.10.tar.gz: unexpected end of file
>How-To-Repeat:
See above.
I can provide the file if necessary.
>Fix:
Not provided.
>Unformatted: