pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/time/remind Fixed the globbing in patch-ac (thanks Chr...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/633bbcbd5bde
branches:  trunk
changeset: 484091:633bbcbd5bde
user:      kim <kim%pkgsrc.org@localhost>
date:      Wed Nov 24 23:04:41 2004 +0000

description:
Fixed the globbing in patch-ac (thanks Christos), to avoid errors from free.

Closes PR pkg/26612

diffstat:

 time/remind/Makefile         |   3 ++-
 time/remind/distinfo         |   4 ++--
 time/remind/patches/patch-ac |  15 ++++++++-------
 3 files changed, 12 insertions(+), 10 deletions(-)

diffs (72 lines):

diff -r e552aee7d293 -r 633bbcbd5bde time/remind/Makefile
--- a/time/remind/Makefile      Wed Nov 24 22:35:25 2004 +0000
+++ b/time/remind/Makefile      Wed Nov 24 23:04:41 2004 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.4 2004/08/11 16:53:59 ben Exp $
+# $NetBSD: Makefile,v 1.5 2004/11/24 23:04:41 kim Exp $
 #
 
 DISTNAME=      remind-03.00.22
 PKGNAME=       ${DISTNAME:C/0([0-9])/\1/g}
+PKGREVISION=   1
 CATEGORIES=    time
 MASTER_SITES=  http://www.roaringpenguin.com/penguin/
 
diff -r e552aee7d293 -r 633bbcbd5bde time/remind/distinfo
--- a/time/remind/distinfo      Wed Nov 24 22:35:25 2004 +0000
+++ b/time/remind/distinfo      Wed Nov 24 23:04:41 2004 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.2 2001/04/18 14:47:15 agc Exp $
+$NetBSD: distinfo,v 1.3 2004/11/24 23:04:41 kim Exp $
 
 SHA1 (remind-03.00.22.tar.gz) = 064aae86fdaa8d9355dd9c982d3ebf6175d70ab8
 Size (remind-03.00.22.tar.gz) = 319556 bytes
 SHA1 (patch-ab) = 8aa6e4cad20f9dc6aaeb012dc767bde5be78f91b
-SHA1 (patch-ac) = 1e50cb45fa9c06e301df9974f67b4a44a154d4e4
+SHA1 (patch-ac) = a88c6fe1951d360fd56294c8756139d0935f897d
 SHA1 (patch-ad) = 56feacc6f9af5c59197900fe4591e7d54ff9372c
 SHA1 (patch-ae) = 4e90c971a519d9ac46992fe5e5ab70300c352262
diff -r e552aee7d293 -r 633bbcbd5bde time/remind/patches/patch-ac
--- a/time/remind/patches/patch-ac      Wed Nov 24 22:35:25 2004 +0000
+++ b/time/remind/patches/patch-ac      Wed Nov 24 23:04:41 2004 +0000
@@ -1,7 +1,7 @@
-$NetBSD: patch-ac,v 1.1.1.1 2000/12/17 23:32:11 wiz Exp $
+$NetBSD: patch-ac,v 1.2 2004/11/24 23:04:41 kim Exp $
 
---- src/files.c.orig   Mon Apr  5 13:34:48 1999
-+++ src/files.c        Wed Mar  1 19:48:52 2000
+--- src/files.c.orig   2000-02-17 22:45:54.000000000 -0500
++++ src/files.c        2004-11-24 18:01:56.000000000 -0500
 @@ -19,6 +19,7 @@
  
  #include <string.h>
@@ -10,11 +10,12 @@
  #include <sys/stat.h>
  
  #ifdef TM_IN_SYS_TIME
-@@ -421,16 +422,26 @@
+@@ -421,16 +422,27 @@
  {     
      DynamicBuffer buf;
      int r, e;
 +    glob_t g;
++    char **gp;
  
      DBufInit(&buf);
 +    memset(&g, 0, sizeof(g));
@@ -30,12 +31,12 @@
 +    glob(DBufValue(&buf), GLOB_NOCHECK|GLOB_BRACE|GLOB_TILDE, NULL, &g);
      DBufFree(&buf);
 +
-+    do {
-+      if ( (r=IncludeFile(*g.gl_pathv)) ) {
++    for (gp = g.gl_pathv; gp && *gp; gp++) {
++      if ( (r=IncludeFile(*gp)) ) {
 +          globfree(&g);
 +          return r;
 +      }
-+    } while (*++g.gl_pathv != NULL);
++    }
 +
 +    globfree(&g);
      NumIfs = 0;



Home | Main Index | Thread Index | Old Index