pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/security/destroy Correct a minor mistake in previous c...
details: https://anonhg.NetBSD.org/pkgsrc/rev/57faa7424f48
branches: trunk
changeset: 466861:57faa7424f48
user: kristerw <kristerw%pkgsrc.org@localhost>
date: Fri Jan 23 23:45:55 2004 +0000
description:
Correct a minor mistake in previous commit, to actually get it
to compile on NetBSD 1.6.
diffstat:
security/destroy/distinfo | 4 ++--
security/destroy/patches/patch-ab | 17 +++++++++++++----
2 files changed, 15 insertions(+), 6 deletions(-)
diffs (41 lines):
diff -r de0d6e72eb07 -r 57faa7424f48 security/destroy/distinfo
--- a/security/destroy/distinfo Fri Jan 23 23:42:01 2004 +0000
+++ b/security/destroy/distinfo Fri Jan 23 23:45:55 2004 +0000
@@ -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 -r de0d6e72eb07 -r 57faa7424f48 security/destroy/patches/patch-ab
--- a/security/destroy/patches/patch-ab Fri Jan 23 23:42:01 2004 +0000
+++ b/security/destroy/patches/patch-ab Fri Jan 23 23:45:55 2004 +0000
@@ -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 @@
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);
Home |
Main Index |
Thread Index |
Old Index