pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/destroy Fix build on NetBSD 1.6 where O_NOFOL...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/86b4293cfebd
branches:  trunk
changeset: 466858:86b4293cfebd
user:      recht <recht%pkgsrc.org@localhost>
date:      Fri Jan 23 23:30:10 2004 +0000

description:
Fix build on NetBSD 1.6 where O_NOFOLLOW isn't available.
Noted by Krister Walfridsson.

diffstat:

 security/destroy/distinfo         |   4 +++-
 security/destroy/patches/patch-aa |  19 +++++++++++++++++++
 security/destroy/patches/patch-ab |  15 +++++++++++++++
 3 files changed, 37 insertions(+), 1 deletions(-)

diffs (53 lines):

diff -r 39d6235f1337 -r 86b4293cfebd security/destroy/distinfo
--- a/security/destroy/distinfo Fri Jan 23 23:26:25 2004 +0000
+++ b/security/destroy/distinfo Fri Jan 23 23:30:10 2004 +0000
@@ -1,4 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2004/01/23 18:11:29 recht Exp $
+$NetBSD: distinfo,v 1.2 2004/01/23 23:30:10 recht Exp $
 
 SHA1 (destroy-20030307.tar.gz) = a3a4e07f58b207cfc8d1b6110a40ad72762aaab4
 Size (destroy-20030307.tar.gz) = 2590 bytes
+SHA1 (patch-aa) = b70f9d6ea08d62767f5833adbf10c771be5a4148
+SHA1 (patch-ab) = 49fcc11b6df7b8d48cf5c6ebbcabf13f07ccf95e
diff -r 39d6235f1337 -r 86b4293cfebd security/destroy/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/destroy/patches/patch-aa Fri Jan 23 23:30:10 2004 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-aa,v 1.1 2004/01/23 23:32:43 recht Exp $
+
+--- Makefile.orig      2003-03-25 16:35:57.000000000 +0100
++++ Makefile
+@@ -13,12 +13,12 @@ COMMENT=        A program to destroy fil
+ 
+ INSTALL=      /usr/bin/install -c -o root -g wheel
+ CC?=          ${CC}
+-CFLAGS+=      -Wall -Werror
++CFLAGS?=      ${CFLAGS}
+ RM?=          ${RM}
+ STRIP?=               ${STRIP}
+ 
+ all:
+-      ${CC} -o ${PORTNAME} destroy.c
++      ${CC} ${CFLAGS} -o ${PORTNAME} destroy.c
+ 
+ install:
+       ${INSTALL} ${PORTNAME} ${LOCALBASE}/bin/
diff -r 39d6235f1337 -r 86b4293cfebd security/destroy/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/destroy/patches/patch-ab Fri Jan 23 23:30:10 2004 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-ab,v 1.1 2004/01/23 23:32:43 recht Exp $
+
+--- destroy.c.orig     2003-03-25 16:56:34.000000000 +0100
++++ destroy.c
+@@ -58,6 +58,10 @@ main(int argc, char *argv[]) {
+       char            *buf;
+       char            *devrand = "/dev/urandom";
+       char            *devzero = "/dev/zero";
++      int             mode = O_WRONLY | O_EXCL;
++#if defined(O_NOFOLLOW)
++      mode |= O_NOFOLLOW;
++#endif
+ 
+       if(argc < 2) {
+               usage();



Home | Main Index | Thread Index | Old Index