diff options
author | kristerw <kristerw@pkgsrc.org> | 2004-01-23 23:45:55 +0000 |
---|---|---|
committer | kristerw <kristerw@pkgsrc.org> | 2004-01-23 23:45:55 +0000 |
commit | 694fec1343855f8ea873b7d6dac16d4c65cde1c4 (patch) | |
tree | ffdda490163d8b2ec285cb4e1532ed09ce122333 /security/destroy | |
parent | e2d76035bbc842042fa1beb8069d91bb18963041 (diff) | |
download | pkgsrc-694fec1343855f8ea873b7d6dac16d4c65cde1c4.tar.gz |
Correct a minor mistake in previous commit, to actually get it
to compile on NetBSD 1.6.
Diffstat (limited to 'security/destroy')
-rw-r--r-- | security/destroy/distinfo | 4 | ||||
-rw-r--r-- | security/destroy/patches/patch-ab | 17 |
2 files changed, 15 insertions, 6 deletions
diff --git a/security/destroy/distinfo b/security/destroy/distinfo index e9dc01e8345..8a2db46e09e 100644 --- a/security/destroy/distinfo +++ b/security/destroy/distinfo @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.2 2004/01/23 23:30:10 recht Exp $ +$NetBSD: distinfo,v 1.3 2004/01/23 23:45:55 kristerw Exp $ SHA1 (destroy-20030307.tar.gz) = a3a4e07f58b207cfc8d1b6110a40ad72762aaab4 Size (destroy-20030307.tar.gz) = 2590 bytes SHA1 (patch-aa) = b70f9d6ea08d62767f5833adbf10c771be5a4148 -SHA1 (patch-ab) = 49fcc11b6df7b8d48cf5c6ebbcabf13f07ccf95e +SHA1 (patch-ab) = 5793431abfb1705533ddc18bf3fa3dbce2cd43bc diff --git a/security/destroy/patches/patch-ab b/security/destroy/patches/patch-ab index f139345c1ca..4d53643e06a 100644 --- a/security/destroy/patches/patch-ab +++ b/security/destroy/patches/patch-ab @@ -1,8 +1,8 @@ -$NetBSD: patch-ab,v 1.1 2004/01/23 23:32:43 recht Exp $ +$NetBSD: patch-ab,v 1.2 2004/01/23 23:45:55 kristerw Exp $ ---- destroy.c.orig 2003-03-25 16:56:34.000000000 +0100 -+++ destroy.c -@@ -58,6 +58,10 @@ main(int argc, char *argv[]) { +--- destroy.c.orig Tue Mar 25 16:56:34 2003 ++++ destroy.c Sat Jan 24 00:38:44 2004 +@@ -58,6 +58,10 @@ char *buf; char *devrand = "/dev/urandom"; char *devzero = "/dev/zero"; @@ -13,3 +13,12 @@ $NetBSD: patch-ab,v 1.1 2004/01/23 23:32:43 recht Exp $ if(argc < 2) { usage(); +@@ -90,7 +94,7 @@ + } + + // Open our user file, and get a file descriptor for it +- if((fd_userfile = open(filename, O_WRONLY | O_NOFOLLOW | O_EXCL)) < 0) { ++ if((fd_userfile = open(filename, mode)) < 0) { + fprintf(stderr, "Open Userfile Error!\n"); + usage(); + exit(1); |