summaryrefslogtreecommitdiffstats
path: root/tar/tar-rootp.patch
blob: 1b34c74e8a7235303e2d11642e337e042f07b3a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -Nru tar-1.18.orig/src/extract.c tar-1.18/src/extract.c
--- tar-1.18.orig/src/extract.c	2007-07-05 08:19:23.000000000 +0200
+++ tar-1.18/src/extract.c	2007-07-05 08:19:37.000000000 +0200
@@ -113,8 +113,6 @@
 extr_init (void)
 {
   we_are_root = geteuid () == 0;
-  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