diff options
Diffstat (limited to 'security/destroy/patches/patch-ab')
-rw-r--r-- | security/destroy/patches/patch-ab | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/security/destroy/patches/patch-ab b/security/destroy/patches/patch-ab deleted file mode 100644 index 4d53643e06a..00000000000 --- a/security/destroy/patches/patch-ab +++ /dev/null @@ -1,24 +0,0 @@ -$NetBSD: patch-ab,v 1.2 2004/01/23 23:45:55 kristerw Exp $ - ---- 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"; -+ int mode = O_WRONLY | O_EXCL; -+#if defined(O_NOFOLLOW) -+ mode |= O_NOFOLLOW; -+#endif - - 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); |