Sorry for top-posting, but I am replying to myself and the context is
rather lengthy.
It seems the issue is that our pax has an internal heuristic to apply -s
transformations not only to file names, but to hard- and sym- link
targets also.
On one hand this seems to be beneficial, on the other ha
Preparation first:
$ mkdir x
$ cd x/
$ touch y
$ ln -s y y.0
$ ln -s y.0 y.0.0
$ cd ..
Demonstration of expected behavior:
$ pax -w -f x.tar -s "#x#z#" x
$ pax -vf x.tar
drwxr-xr-x 2 ...0 20 Sep 18:51 z
-rw-r--r-- 1 ...0 20 Sep 18:51 z