summaryrefslogtreecommitdiffstats
path: root/gtar/tar-rootp.patch
diff options
context:
space:
mode:
authorLukc <lukc@upyum.com>2010-12-12 04:29:19 +0100
committerLukc <lukc@upyum.com>2010-12-12 04:29:19 +0100
commitc42d52ef73123d38394acaa646ff82d0e5aff6a9 (patch)
tree4d1bbed7d4f6bb335545f2a0fcdc34170dc28944 /gtar/tar-rootp.patch
parenta02af57a5fbdf46aa5ae447fe8c4f0b3fb48b4f6 (diff)
downloadopt-c42d52ef73123d38394acaa646ff82d0e5aff6a9.tar.gz
opt-c42d52ef73123d38394acaa646ff82d0e5aff6a9.tar.bz2
opt-c42d52ef73123d38394acaa646ff82d0e5aff6a9.tar.xz
opt-c42d52ef73123d38394acaa646ff82d0e5aff6a9.zip
Recette de GNU tar ajout?e. o/
Diffstat (limited to 'gtar/tar-rootp.patch')
-rw-r--r--gtar/tar-rootp.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/gtar/tar-rootp.patch b/gtar/tar-rootp.patch
new file mode 100644
index 0000000..1b34c74
--- /dev/null
+++ b/gtar/tar-rootp.patch
@@ -0,0 +1,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