[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] --files-from and --same-permissions
From: |
Neal P. Murphy |
Subject: |
Re: [Bug-tar] --files-from and --same-permissions |
Date: |
Sat, 19 Nov 2016 20:16:57 -0500 |
Wait. Do I have to explicitly specify every dir in each file's path when
selecting a subset of files in a tarball?
On Sat, 19 Nov 2016 19:57:14 -0500
"Neal P. Murphy" <address@hidden> wrote:
> 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).
>