summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorrillig <rillig>2007-01-18 22:55:19 +0000
committerrillig <rillig>2007-01-18 22:55:19 +0000
commitb6b24c7e831bdce609d0a94d54a0a718d0de9902 (patch)
treeca68843b6e53736b23287f0f65a043e80f719b91 /security
parentb40beb80241b1b9fdc8c762c953fcaa2d841f1b0 (diff)
downloadpkgsrc-b6b24c7e831bdce609d0a94d54a0a718d0de9902.tar.gz
Added a patch that calls closedir() after scanning a directory. Now RATS
is able to scan much larger directories. :) PKGREVISION++
Diffstat (limited to 'security')
-rw-r--r--security/rats/Makefile4
-rw-r--r--security/rats/distinfo3
-rw-r--r--security/rats/patches/patch-aa21
3 files changed, 25 insertions, 3 deletions
diff --git a/security/rats/Makefile b/security/rats/Makefile
index 0392425b13b..4e4efaae2dc 100644
--- a/security/rats/Makefile
+++ b/security/rats/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.21 2006/10/04 21:58:14 wiz Exp $
+# $NetBSD: Makefile,v 1.22 2007/01/18 22:55:19 rillig Exp $
#
DISTNAME= rats-2.1
-PKGREVISION= 4
+PKGREVISION= 5
CATEGORIES= security
MASTER_SITES= http://www.securesoftware.com/rats/
diff --git a/security/rats/distinfo b/security/rats/distinfo
index f20aabc323c..318e6cc9bd1 100644
--- a/security/rats/distinfo
+++ b/security/rats/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.6 2005/02/24 13:10:12 agc Exp $
+$NetBSD: distinfo,v 1.7 2007/01/18 22:55:19 rillig Exp $
SHA1 (rats-2.1.tar.gz) = b837b1765caa8ed36b70e6c88446c4d415554500
RMD160 (rats-2.1.tar.gz) = 6385ff617bf629b03eff64f5563963c905341f22
Size (rats-2.1.tar.gz) = 326930 bytes
+SHA1 (patch-aa) = dd5cf15ab3c8221681e4311c5327ec17c11401af
diff --git a/security/rats/patches/patch-aa b/security/rats/patches/patch-aa
new file mode 100644
index 00000000000..c08c85b9cdd
--- /dev/null
+++ b/security/rats/patches/patch-aa
@@ -0,0 +1,21 @@
+$NetBSD: patch-aa,v 1.3 2007/01/18 22:55:19 rillig Exp $
+
+--- engine.c.orig 2002-09-23 19:51:11.000000000 +0200
++++ engine.c 2007-01-18 23:51:57.000000000 +0100
+@@ -1004,7 +1004,7 @@ void process_directory(char *filename, i
+ }
+ #else
+ if((dir=opendir(filename))==NULL) {
+- fprintf(stderr,"There was a problem opening the directory.\n");
++ perror(filename);
+ return;
+ }
+ while((dirdata=readdir(dir))!=NULL) {
+@@ -1019,6 +1019,7 @@ void process_directory(char *filename, i
+ dirdata->d_name);
+ process_file(buf,forcelang);
+ }
++ closedir(dir);
+ #endif
+ }
+