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:
Maxim Sobolev 2002-06-07 06:02:35 +00:00
parent 99cca534f3
commit 3729010bdd

View File

@ -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