core/tar/tar-rootp.patch
2013-10-08 18:41:00 +02:00

12 lines
439 B
Diff

--- tar-1.27.orig/src/extract.c 2013-10-08 18:37:10.138985808 +0200
+++ tar-1.27/src/extract.c 2013-10-08 18:38:19.661979057 +0200
@@ -176,8 +176,6 @@
extr_init (void)
{
we_are_root = geteuid () == ROOT_UID;
- same_permissions_option += we_are_root;
- same_owner_option += we_are_root;
/* Option -p clears the kernel umask, so it does not affect proper
restoration of file permissions. New intermediate directories will