tar v1.28. Just spent all day trying to figure out why tar refuses to extract 
files with the same permissions as in the tarball.

In the tarball, ./tmp has mode 1777. Extracting the files as root with or 
without option --same-permissions yields the desired result: the extracted dir 
tmp has mode 1777.

Alas, option -T (--files-from, used to get a list of files to restore from a 
file) turns on --no-same-permissions. I've found no way around it; I think it's 
a bug.

In short, if I use -T to supply a list of files to restore from a file, tar 
fails to correctly restore the files (in my case, it fails to restore the 
correct mode).

Reply via email to