Subject: bin/10679: pax-as-tar broken
To: None <gnats-bugs@gnats.netbsd.org>
From: Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de>
List: netbsd-bugs
Date: 07/25/2000 14:33:16
>Number:         10679
>Category:       bin
>Synopsis:       pax-as-tar broken
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 25 14:34:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Hubert Feyrer
>Release:        1.5_ALPHA as or 20000713
>Organization:
NetBSD - because Unix isn't just #include <linux.h>, i386, ILP32, ELF, ...!
>Environment:
	
System: NetBSD miyu 1.5_ALPHA NetBSD 1.5_ALPHA (MIYU) #2: Tue Jul 25 22:04:13 MEST 2000 feyrer@miyu:/ccd0/cvs/src-1.5/sys/arch/i386/compile/MIYU i386


>Description:

The -C switch on pax-as-tar does not work as expected from "normal"
NetBSD operation. If -C <somedir> is given, nothing at all is extracted.
This is good for some surprise if you want to use the tar found on install
floppies to extract something.


>How-To-Repeat:
	Try to extract a .tar.gz file using pax-as-tar, and use the -C
	switch (as in gtar) to cd to some dir first:

	miyu% cd /tmp
	miyu% ln -s /bin/pax tar
	miyu% set path=(/tmp $path )
	miyu% rehash
	miyu% /usr/bin/tar plzcf etc.tgz /etc
	<ignore errors about unreadable files>
	miyu% which tar
	/tmp/tar
	miyu% tar zvxCf /tmp etc.tgz
	tar: ustar vol 1, 220 files, 684032 bytes read, 0 bytes written in 1 secs (684032 bytes/sec)

	Note nothing was extracted (0 bytes written).


	
>Fix:
	Workaround: don't use -C on pax-as-tar
>Release-Note:
>Audit-Trail:
>Unformatted: