Subject: bin/10679: pax-as-tar broken
To: None <>
From: Hubert Feyrer <>
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
>Originator:     Hubert Feyrer
>Release:        1.5_ALPHA as or 20000713
NetBSD - because Unix isn't just #include <linux.h>, i386, ILP32, ELF, ...!
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


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.

	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
	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).

	Workaround: don't use -C on pax-as-tar