Subject: pax & Solaris
To: Alistair G. Crooks <agc@netbsd.org>
From: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>
List: tech-pkg
Date: 11/14/2001 21:20:04
On Wed, 14 Nov 2001, Alistair G. Crooks wrote:
> Log Message:
> Replace "${GTAR} cf - . | (cd ... ; ${GTAR} xf - )" pipelines with a
> single instance of ${PAX}.

For the record:
There was a bug in Solaris in where it set permissions to 777 for targets
of symlinks it did copy (where the targets were not necessarily copied).
I've checked and this bug seems to be gone in Solaris 8.


 - Hubert

rfhpc8317% cd src
rfhpc8317% ln -s ../bin .
rfhpc8317% pax -rw -pe -v . ../dst
../dst/.
../dst/./bin
rfhpc8317% ls -la ../dst
total 24
drwxr-xr-x   2 feyrer   bedienst     105 Nov 14 21:14 .
drwxr-xr-x   4 feyrer   bedienst     177 Nov 14 21:14 ..
lrwxrwxrwx   1 feyrer   bedienst       6 Nov 14 21:14 bin -> ../bin
rfhpc8317% ls -la ../bin
-rwxr-xr-x   1 feyrer   bedienst      15 Nov 14 21:14 ../bin
 ^^^^^^^^^

The permissions of ../bin used to be clobbered before, this looks good
now.


 - Hubert

-- 
Want to get a clue on IPv6 but don't know where to start? Try this:
* Basics -> http://www.onlamp.com/pub/a/onlamp/2001/05/24/ipv6_tutorial.html
* Setup  -> http://www.onlamp.com/pub/a/onlamp/2001/06/01/ipv6_tutorial.html 
Of course with your #1 IPv6 ready operating system -> http://www.NetBSD.org/