From 4d905c83a4af0fca93f2247d61cb0ce51f01dfcd Mon Sep 17 00:00:00 2001 From: sobomax Date: Fri, 7 Jun 2002 06:02:35 +0000 Subject: Disabling automatic --same-owner option when running as uid 0 along with the --same-permissions was an overkill, so put it back. This is consistent with what our old tar did. Suggested by: dillon --- contrib/tar/src/extract.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/tar/src') diff --git a/contrib/tar/src/extract.c b/contrib/tar/src/extract.c index e5f5ea6..c47f4c3 100644 --- a/contrib/tar/src/extract.c +++ b/contrib/tar/src/extract.c @@ -114,8 +114,8 @@ extr_init (void) we_are_root = geteuid () == 0; #ifndef __FreeBSD__ same_permissions_option += we_are_root; - same_owner_option += we_are_root; #endif + same_owner_option += we_are_root; xalloc_fail_func = extract_finish; /* Option -p clears the kernel umask, so it does not affect proper -- cgit v1.1