summaryrefslogtreecommitdiff
path: root/archivers/gtar-base/patches/patch-ab
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>2000-10-20 02:47:43 +0000
committerhubertf <hubertf@pkgsrc.org>2000-10-20 02:47:43 +0000
commite7b4ef0d1fcbd115d3a5efce418d61388cc5d1be (patch)
treebf16e8b08284ad4f90644d90729c987791bf63db /archivers/gtar-base/patches/patch-ab
parent7e82f61da46a8f45f97755f89c680f2a160779cd (diff)
downloadpkgsrc-e7b4ef0d1fcbd115d3a5efce418d61388cc5d1be.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>
Diffstat (limited to 'archivers/gtar-base/patches/patch-ab')
-rw-r--r--archivers/gtar-base/patches/patch-ab8
1 files changed, 4 insertions, 4 deletions
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