Toby Peterson <address@hidden> wrote:
This is a *very* simple test case. Compare the output of tar -tvf, and
the first and second ls -l commands.
#!/bin/sh
TAR="tar --no-same-permissions"
Toby, --no-same-permissions is not supposed to disable restoring
of directory metadata from the archive. Moreover, this option
does not work for an ordinary user: it is intended for root use
only. From `info tar':
`--no-same-permissions'
When extracting an archive, subtract the user's umask from files
from the permissions specified in the archive. This is the
default behavior for ordinary users; this option has an
effect only for the superuser.
(I agree that the option name is rather misleading)