|
From: | Tim Kientzle |
Subject: | Re: [Bug-tar] Fwd: bug in GnuTar |
Date: | Thu, 22 Nov 2007 15:14:39 -0800 |
User-agent: | Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20060422 |
Sergey Poznyakoff wrote:
Vitaly V. Ch <address@hidden> ha escrit:On some machines run under slackware 10.2 next test always fail: for ((i=0;i<1000;i++)); do echo $i >$i; tar cz $i >>file.tgz; done; gzip -t -v file.tgzIt should have failed. You cannot glue together two compressed files and expect the result to be a valid compressed file.
That doesn't quite explain why his second example always works for him, though:
but following test always success on all machines: for ((i=0;i<1000;i++)); do echo $i >$i; tar c $i | gzip >>file.tgz; done; gzip -t -v file.tgz
It does sound as though tar is exiting before the child gzip under some circumstances. Tim Kientzle
[Prev in Thread] | Current Thread | [Next in Thread] |