From owner-freebsd-bugs Mon Mar 27 5: 0:14 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 6EF3337BC9B for ; Mon, 27 Mar 2000 05:00:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id FAA31345; Mon, 27 Mar 2000 05:00:03 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140]) by hub.freebsd.org (Postfix) with ESMTP id E8A5537BAEF for ; Mon, 27 Mar 2000 04:57:49 -0800 (PST) (envelope-from marcolz@stack.nl) Received: from toad.stack.nl (toad.stack.nl [131.155.140.135]) by mailhost.stack.nl (Postfix) with ESMTP id 372635D006 for ; Mon, 27 Mar 2000 14:57:43 +0200 (CEST) Received: by toad.stack.nl (Postfix, from userid 333) id 7FF719713; Mon, 27 Mar 2000 14:57:39 +0200 (CEST) Message-Id: <20000327125739.7FF719713@toad.stack.nl> Date: Mon, 27 Mar 2000 14:57:39 +0200 (CEST) From: marcolz@stack.nl Reply-To: marcolz@stack.nl To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/17619: pax cannot read all tar files created by tar. Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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 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