bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] --files-from and --same-permissions


From: Neal P. Murphy
Subject: [Bug-tar] --files-from and --same-permissions
Date: Sat, 19 Nov 2016 19:57:14 -0500

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

[Prev in Thread] Current Thread [Next in Thread]