pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/rats Added a patch that calls closedir() afte...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9b63f6c36e28
branches:  trunk
changeset: 524124:9b63f6c36e28
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Jan 18 22:55:19 2007 +0000

description:
Added a patch that calls closedir() after scanning a directory. Now RATS
is able to scan much larger directories. :)

PKGREVISION++

diffstat:

 security/rats/Makefile         |   4 ++--
 security/rats/distinfo         |   3 ++-
 security/rats/patches/patch-aa |  21 +++++++++++++++++++++
 3 files changed, 25 insertions(+), 3 deletions(-)

diffs (50 lines):

diff -r 7a666ce50587 -r 9b63f6c36e28 security/rats/Makefile
--- a/security/rats/Makefile    Thu Jan 18 22:47:38 2007 +0000
+++ b/security/rats/Makefile    Thu Jan 18 22:55:19 2007 +0000
@@ -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 -r 7a666ce50587 -r 9b63f6c36e28 security/rats/distinfo
--- a/security/rats/distinfo    Thu Jan 18 22:47:38 2007 +0000
+++ b/security/rats/distinfo    Thu Jan 18 22:55:19 2007 +0000
@@ -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 -r 7a666ce50587 -r 9b63f6c36e28 security/rats/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/rats/patches/patch-aa    Thu Jan 18 22:55:19 2007 +0000
@@ -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
+ }
+ 



Home | Main Index | Thread Index | Old Index