From 4965bc7e55d29bec91dd841ca550f73f9b19d48a Mon Sep 17 00:00:00 2001 From: kientzle Date: Sun, 27 Jun 2004 23:29:44 +0000 Subject: 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). --- usr.bin/tar/bsdtar.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.bin') 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') -- cgit v1.1