From b6b24c7e831bdce609d0a94d54a0a718d0de9902 Mon Sep 17 00:00:00 2001 From: rillig Date: Thu, 18 Jan 2007 22:55:19 +0000 Subject: Added a patch that calls closedir() after scanning a directory. Now RATS is able to scan much larger directories. :) PKGREVISION++ --- security/rats/Makefile | 4 ++-- security/rats/distinfo | 3 ++- security/rats/patches/patch-aa | 21 +++++++++++++++++++++ 3 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 security/rats/patches/patch-aa (limited to 'security') 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 + } + -- cgit v1.2.3