pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/games/marbles Add a security patch and a compilation p...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7c2fe290abe9
branches:  trunk
changeset: 462126:7c2fe290abe9
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Fri Sep 26 12:40:27 2003 +0000

description:
Add a security patch and a compilation patch from the Debian package.
Bump PKGREVISION.

diffstat:

 games/marbles/Makefile         |   4 ++--
 games/marbles/distinfo         |   4 +++-
 games/marbles/patches/patch-ap |  23 +++++++++++++++++++++++
 games/marbles/patches/patch-ar |  13 +++++++++++++
 4 files changed, 41 insertions(+), 3 deletions(-)

diffs (70 lines):

diff -r 7a05c01b096a -r 7c2fe290abe9 games/marbles/Makefile
--- a/games/marbles/Makefile    Fri Sep 26 12:15:56 2003 +0000
+++ b/games/marbles/Makefile    Fri Sep 26 12:40:27 2003 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.4 2003/07/26 21:41:20 jmmv Exp $
+# $NetBSD: Makefile,v 1.5 2003/09/26 12:40:27 wiz Exp $
 #
 
 DISTNAME=      marbles-1.0.2
-PKGREVISION=   2
+PKGREVISION=   3
 CATEGORIES=    games
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=lgames/}
 
diff -r 7a05c01b096a -r 7c2fe290abe9 games/marbles/distinfo
--- a/games/marbles/distinfo    Fri Sep 26 12:15:56 2003 +0000
+++ b/games/marbles/distinfo    Fri Sep 26 12:40:27 2003 +0000
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.1.1.1 2002/05/05 23:01:06 hubertf Exp $
+$NetBSD: distinfo,v 1.2 2003/09/26 12:40:27 wiz Exp $
 
 SHA1 (marbles-1.0.2.tar.gz) = ede46e2df12e0919fec3cf8b56abe39ee070118e
 Size (marbles-1.0.2.tar.gz) = 798715 bytes
 SHA1 (patch-aa) = 2ea7fc1f424c49a03292f67c119b787961b89457
+SHA1 (patch-ap) = 57f6efd2d25be1f0604f2487ea05a5bfd4296d34
+SHA1 (patch-ar) = b453e75a29848a470275d06bc97e9fe09a12e1b8
diff -r 7a05c01b096a -r 7c2fe290abe9 games/marbles/patches/patch-ap
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/marbles/patches/patch-ap    Fri Sep 26 12:40:27 2003 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-ap,v 1.1 2003/09/26 12:40:27 wiz Exp $
+
+--- src/cfg.c.orig     Wed Mar  6 21:46:43 2002
++++ src/cfg.c
+@@ -40,9 +40,16 @@ Cfg cfg;
+ void C_StPth()
+ {
+ #ifdef _WIN32
+-    sprintf( c_pth, "%s/lgames", (getenv( "HOME" )?getenv( "HOME" ):".") );
++    snprintf( c_pth, sizeof( c_pth ) - 1, "%s/lgames", (getenv( "HOME" )?getenv( "HOME" ):".") );
+ #else
+-    sprintf( c_pth, "%s/.lgames", getenv( "HOME" ) );
++    if ( getenv( "HOME" ) )
++    {
++      snprintf( c_pth, sizeof( c_pth ) - 1, "%s/.lgames", getenv( "HOME" ) );
++    }
++    else
++    {
++      strcpy( c_pth, ".lgames" );
++    }
+ #endif
+     /* create .lgames directory if not found */
+     if ( opendir( c_pth ) == 0 ) {
diff -r 7a05c01b096a -r 7c2fe290abe9 games/marbles/patches/patch-ar
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/marbles/patches/patch-ar    Fri Sep 26 12:40:27 2003 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ar,v 1.1 2003/09/26 12:40:27 wiz Exp $
+
+--- src/profile.c.orig Wed Jan 30 18:57:23 2002
++++ src/profile.c
+@@ -75,7 +75,7 @@ int Prf_Ld()
+ #ifdef ASCII
+         F_GetE(f, str, F_VAL); str[strlen(str) - 1] = 0;
+         if (strncmp(str,"ascii",5)) {
+-            printf("\nWARNING: trying to load raw binary data in ascii; cannot read profiles\n", prf_pth);
++            printf("\nWARNING: trying to load raw binary data in ascii; cannot read profiles\n");
+             Prf_Crt("Michael");
+             not_f = 1;
+         }



Home | Main Index | Thread Index | Old Index