Subject: bin/19757: pax-as-tar ignores -h option
To: None <gnats-bugs@gnats.netbsd.org>
From: None <andreas@planix.com>
List: netbsd-bugs
Date: 01/09/2003 11:50:31
>Number:         19757
>Category:       bin
>Synopsis:       pax-as-tar ignores -h option
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 09 08:51:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Andreas Wrede <andreas@planix.com>
>Release:        NetBSD 1.6K
>Organization:
Planix, Inc.
>Environment:
	
	
System: NetBSD woffi.planix.com 1.6K NetBSD 1.6K (PLANIX) #4: Sat Jan 4 13:18:31 EST 2003 root@woffi.planix.com:/m5/netbsd-current/src/sys/arch/i386/compile/WOFFI i386
Architecture: i386
Machine: i386
>Description:
The -h option is ignored by pax-as-tar. Installing unproven-pthreads 
will appear to succeed but some include file will be symlinks pointing 
to nowhere.

>How-To-Repeat:
# tar1.5 below is NetBSD 1.5's tar
$ mkdir x; cd x; echo "xxxxx" > file; ln -s file link; ls -l 
total 1
-rw-r--r--  1 andreas  wheel  6 Jan  9 11:40 file
lrwxr-xr-x  1 andreas  wheel  4 Jan  9 11:40 link -> file
$ tar -chf -  . | tar -tvf -
drwxr-xr-x  2 andreas  wheel          0 Jan  9 11:40 .
-rw-r--r--  1 andreas  wheel          6 Jan  9 11:40 ./file
lrwxr-xr-x  1 andreas  wheel          0 Jan  9 11:40 ./link -> file
tar: ustar vol 1, 3 files, 10240 bytes read, 0 bytes written in 1 secs (10240 bytes/sec)
$ tar15 -chf -  . | tar -tvf - 
drwxr-xr-x  2 andreas  wheel          0 Jan  9 11:40 .
-rw-r--r--  1 andreas  wheel          6 Jan  9 11:40 file
-rw-r--r--  1 andreas  wheel          6 Jan  9 11:40 link
tar: ustar vol 1, 3 files, 10240 bytes read, 0 bytes written in 1 secs (10240 bytes/sec)
$
>Fix:
	
unknown. Maybe translate tar's -h to pax's -L?
>Release-Note:
>Audit-Trail:
>Unformatted: