diff options
author | hubertf <hubertf> | 2000-10-20 02:47:43 +0000 |
---|---|---|
committer | hubertf <hubertf> | 2000-10-20 02:47:43 +0000 |
commit | dfd87aad56fa970d31c3b16f366da2330c11d519 (patch) | |
tree | bf16e8b08284ad4f90644d90729c987791bf63db | |
parent | edfa35621cfc67b45e0380dfb56aee4896085c6c (diff) | |
download | pkgsrc-dfd87aad56fa970d31c3b16f366da2330c11d519.tar.gz |
Do not use lchmod etc. on old systems that don't have that call.
Patch submitted in PR 9628 by Jan-Hinrich Fessel <oskar@detemobil.de>
-rw-r--r-- | archivers/gtar-base/files/patch-sum | 4 | ||||
-rw-r--r-- | archivers/gtar-base/patches/patch-ab | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/archivers/gtar-base/files/patch-sum b/archivers/gtar-base/files/patch-sum index 4ee8cdb4dbe..0f5c76d522c 100644 --- a/archivers/gtar-base/files/patch-sum +++ b/archivers/gtar-base/files/patch-sum @@ -1,7 +1,7 @@ -$NetBSD: patch-sum,v 1.4 1999/09/18 14:51:06 kim Exp $ +$NetBSD: patch-sum,v 1.5 2000/10/20 02:47:43 hubertf Exp $ MD5 (patch-aa) = bcc4f474df0bec91c68b2a0a74d94ce5 -MD5 (patch-ab) = c084f2dec72afbc738780f1ef24339f1 +MD5 (patch-ab) = ea6ca3c0a0768510cea0f48355723886 MD5 (patch-ac) = e4f3ddfab9b1a9dfeddbb2d7a977dcc5 MD5 (patch-ad) = a205544ef8de6e37cbcd85f0b3d8863f MD5 (patch-ae) = 1247d0b77f15168128953e9d01b1f0ea diff --git a/archivers/gtar-base/patches/patch-ab b/archivers/gtar-base/patches/patch-ab index 0535f8b3b36..9df1bc49b81 100644 --- a/archivers/gtar-base/patches/patch-ab +++ b/archivers/gtar-base/patches/patch-ab @@ -1,4 +1,4 @@ -$NetBSD: patch-ab,v 1.6 1999/09/18 14:52:22 kim Exp $ +$NetBSD: patch-ab,v 1.7 2000/10/20 02:47:45 hubertf Exp $ --- src/extract.c.orig Tue Apr 22 20:05:57 1997 +++ src/extract.c Fri Mar 6 14:33:05 1998 @@ -6,7 +6,7 @@ $NetBSD: patch-ab,v 1.6 1999/09/18 14:52:22 kim Exp $ if (!keep_old_files_option || (stat_info->st_mode & (S_ISUID | S_ISGID | S_ISVTX))) -+#ifdef __NetBSD__ ++#if (defined (__NetBSD__) && NetBSD > 199706 && !defined(NetBSD1_2)) + if (lchmod (file_name, ~current_umask & (int) stat_info->st_mode) < 0) +#else if (chmod (file_name, ~current_umask & (int) stat_info->st_mode) < 0) @@ -18,7 +18,7 @@ $NetBSD: patch-ab,v 1.6 1999/09/18 14:52:22 kim Exp $ { struct utimbuf utimbuf; -+#ifndef __NetBSD__ ++#if !(defined (__NetBSD__) && NetBSD > 199706 && !defined(NetBSD1_2)) if (!symlink_flag) { +#endif @@ -29,7 +29,7 @@ $NetBSD: patch-ab,v 1.6 1999/09/18 14:52:22 kim Exp $ /* FIXME: incremental_option should set ctime too, but how? */ -+#ifndef __NetBSD__ ++#if !(defined (__NetBSD__) && NetBSD > 199706 && !defined(NetBSD1_2)) if (incremental_option) utimbuf.actime = stat_info->st_atime; else |