pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/games/sarien plug a file descriptor leak



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b2b0939c57ee
branches:  trunk
changeset: 460113:b2b0939c57ee
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Tue Aug 19 18:41:46 2003 +0000

description:
plug a file descriptor leak
now Larry gets past the first screen

diffstat:

 games/sarien/distinfo         |   3 ++-
 games/sarien/patches/patch-ab |  17 +++++++++++++++++
 2 files changed, 19 insertions(+), 1 deletions(-)

diffs (32 lines):

diff -r dac018acf5e9 -r b2b0939c57ee games/sarien/distinfo
--- a/games/sarien/distinfo     Tue Aug 19 15:54:17 2003 +0000
+++ b/games/sarien/distinfo     Tue Aug 19 18:41:46 2003 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2003/01/10 16:16:36 jmmv Exp $
+$NetBSD: distinfo,v 1.2 2003/08/19 18:41:46 drochner Exp $
 
 SHA1 (sarien-0.7.0.tar.gz) = f1c3236ed554cbde479fbbfa52cbc95cb9759fde
 Size (sarien-0.7.0.tar.gz) = 284109 bytes
 SHA1 (patch-aa) = 437bf3108d437f265c97a813a1a1d512003f20b4
+SHA1 (patch-ab) = 0cc8d119e26aca5530bb70342b884e7faa2ad3e9
diff -r dac018acf5e9 -r b2b0939c57ee games/sarien/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/sarien/patches/patch-ab     Tue Aug 19 18:41:46 2003 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-ab,v 1.1 2003/08/19 18:41:47 drochner Exp $
+
+--- src/filesys/unix/fileglob.c.orig   2003-08-19 20:32:30.000000000 +0200
++++ src/filesys/unix/fileglob.c        2003-08-19 20:33:42.000000000 +0200
+@@ -76,10 +76,12 @@
+                       } else {
+                               strcpy (path, e->d_name);
+                       }
++                      closedir(d);
+                       return path;
+               }
+       }
+ 
++      closedir(d);
+       return NULL;
+ }
+ 



Home | Main Index | Thread Index | Old Index