Date: Mon, 27 Mar 2000 14:57:39 +0200 (CEST) From: marcolz@stack.nl To: FreeBSD-gnats-submit@freebsd.org Subject: bin/17619: pax cannot read all tar files created by tar. Message-ID: <20000327125739.7FF719713@toad.stack.nl>
next in thread | raw e-mail | index | archive | help
>Number: 17619 >Category: bin >Synopsis: pax cannot read all tar files created by tar. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Mar 27 05:00:01 PST 2000 >Closed-Date: >Last-Modified: >Originator: Marc Olzheim >Release: FreeBSD 3.4-RELEASE i386 >Organization: M.C.G.V. Stack >Environment: >Description: When trying to read a tar file created by GNU-tar or Solaris's tar, pax asks for another archive. It seems to misinterpret the tar-header. Some sizes of tar's will be handled just right, others don't. >How-To-Repeat: prompt> dd if=/dev/zero of=foo bs=1759830 count=1 prompt> tar cf bar.tar foo prompt> pax -vf bar.tar -rw-r--r-- 1 marcolz wheel 1759830 Mar 27 14:52 foo pax: End of archive volume 1 reached pax: ustar vol 1, 1 files, 1761280 bytes read, 0 bytes written. ATTENTION! pax archive volume change required. Ready for archive volume: 2 Input archive name or "." to quit pax. >Fix: A work around for this specific example is to do: prompt> { cat bar.tar ; dd if=/dev/zero bs=512 count=1 ; } | pax -v But in general it seems like a good idea to just add a complete <blocksize> block of zeroes, i.e. 10k, so: prompt> { cat bar.tar ; dd if=/dev/zero bs=10k count=1 ; } | pax -v >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000327125739.7FF719713>