diff options
author | sobomax <sobomax@FreeBSD.org> | 2002-06-07 00:07:48 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2002-06-07 00:07:48 +0000 |
commit | b5d89a515bb9674f8c3049314ee8688715e9d744 (patch) | |
tree | 95aed83688502eb0b54809dd2e1c19fd67836517 /archivers/gtar | |
parent | 1c8c790e465421696f1104451d3c813010e442f7 (diff) | |
download | FreeBSD-ports-b5d89a515bb9674f8c3049314ee8688715e9d744.zip FreeBSD-ports-b5d89a515bb9674f8c3049314ee8688715e9d744.tar.gz |
Sync with src/contrib/tar - don't assume that user with uid 0 doesn't really
care about umask(2).
Diffstat (limited to 'archivers/gtar')
-rw-r--r-- | archivers/gtar/Makefile | 2 | ||||
-rw-r--r-- | archivers/gtar/files/patch-src::extract.c | 28 |
2 files changed, 29 insertions, 1 deletions
diff --git a/archivers/gtar/Makefile b/archivers/gtar/Makefile index 271f028..4611d12 100644 --- a/archivers/gtar/Makefile +++ b/archivers/gtar/Makefile @@ -7,7 +7,7 @@ PORTNAME= tar PORTVERSION= 1.13.25 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= archivers sysutils MASTER_SITES= ftp://alpha.gnu.org/gnu/tar/ \ ftp://ftp.sunsite.org.uk/Mirrors/alpha.gnu.org/gnu/tar/ \ diff --git a/archivers/gtar/files/patch-src::extract.c b/archivers/gtar/files/patch-src::extract.c new file mode 100644 index 0000000..ab8e59d --- /dev/null +++ b/archivers/gtar/files/patch-src::extract.c @@ -0,0 +1,28 @@ +Index: src/extract.c +=================================================================== +RCS file: /home/ncvs/src/contrib/tar/src/extract.c,v +retrieving revision 1.1.1.1 +retrieving revision 1.2 +diff -d -u -r1.1.1.1 -r1.2 +--- src/extract.c 4 Jun 2002 10:37:44 -0000 1.1.1.1 ++++ src/extract.c 7 Jun 2002 00:03:23 -0000 1.2 +@@ -19,6 +19,8 @@ + with this program; if not, write to the Free Software Foundation, Inc., + 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + ++/* $FreeBSD$ */ ++ + #include "system.h" + #include <quotearg.h> + +@@ -110,8 +112,10 @@ + extr_init (void) + { + we_are_root = geteuid () == 0; ++#ifndef __FreeBSD__ + same_permissions_option += we_are_root; + same_owner_option += we_are_root; ++#endif + xalloc_fail_func = extract_finish; + + /* Option -p clears the kernel umask, so it does not affect proper |