diff options
author | kientzle <kientzle@FreeBSD.org> | 2004-06-27 23:29:44 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2004-06-27 23:29:44 +0000 |
commit | 4965bc7e55d29bec91dd841ca550f73f9b19d48a (patch) | |
tree | a7a80263bdd1516f37b4b253c4a77ad070a17237 /usr.bin/tar | |
parent | ab5ccb718d67cdeea503246228144bdd0066dcd1 (diff) | |
download | FreeBSD-src-4965bc7e55d29bec91dd841ca550f73f9b19d48a.zip FreeBSD-src-4965bc7e55d29bec91dd841ca550f73f9b19d48a.tar.gz |
Update -p:
* Don't change the umask; the library now ignores the umask if
you set EXTRACT_PERM
* Set the EXTRACT_ACL and EXTRACT_FFLAGS bits (used to be
controlled by EXTRACT_PERM).
Diffstat (limited to 'usr.bin/tar')
-rw-r--r-- | usr.bin/tar/bsdtar.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tar/bsdtar.c b/usr.bin/tar/bsdtar.c index 2564571..bca3e87 100644 --- a/usr.bin/tar/bsdtar.c +++ b/usr.bin/tar/bsdtar.c @@ -306,8 +306,9 @@ main(int argc, char **argv) bsdtar->option_absolute_paths = 1; break; case 'p': /* GNU tar, star */ - umask(0); bsdtar->extract_flags |= ARCHIVE_EXTRACT_PERM; + bsdtar->extract_flags |= ARCHIVE_EXTRACT_ACL; + bsdtar->extract_flags |= ARCHIVE_EXTRACT_FFLAGS; break; case 'r': /* SUSv2 */ if (mode != '\0') |