LiveandLearn2021 has asked for the wisdom of the Perl Monks concerning the following question:
These are the permissions on the original directories: ls -ld /usr drwxr-xr-x 54 root sys 69 Apr 9 2018 /usr ls -ld /usr/include drwxr-xr-x 117 root bin 436 Sep 25 22:10 /usr/include ls -ld /usr/include/sys drwxr-xr-x 25 root bin 628 Sep 25 22:09 /usr/include/sys When I extract the archive(as root) generated from my code I see these permissions: ls -ld usr drwxr-xr-x 3 root root 512 Jan 20 13:06 usr ls -ld usr/include drwxr-xr-x 3 root root 512 Jan 20 13:06 usr/include ls -ld usr/include/sys drwxr-xr-x 2 root root 11776 Jan 20 13:07 usr/include/sys Thank you for any assistance!use Archive::Tar; $tar = Archive::Tar->new(); $tar->add_files(<"/usr/include/sys/*.h">) or die("Failed $!\n"); $tar->write("files.tar") or die("Failed $!\n");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Archive::Tar directory permissions
by kcott (Archbishop) on Jan 20, 2022 at 22:14 UTC | |
by LiveandLearn2021 (Initiate) on Jan 24, 2022 at 14:03 UTC | |
|
Re: Archive::Tar directory permissions
by Fletch (Bishop) on Jan 20, 2022 at 19:35 UTC | |
|
Re: Archive::Tar directory permissions
by talexb (Chancellor) on Jan 21, 2022 at 16:18 UTC |