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
This commit is contained in:
parent
99cca534f3
commit
3729010bdd
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user