summaryrefslogtreecommitdiff
path: root/games/xblockout/patches
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2011-12-15 04:18:16 +0000
committerdholland <dholland@pkgsrc.org>2011-12-15 04:18:16 +0000
commitb30373248291c35b16007b30256df8eebdaa241d (patch)
treefb8d9b54253efacdd95da784ad2e5dfc62cd8c4e /games/xblockout/patches
parentf101241a3ae2b775d548e9703067cd86a9b32c4a (diff)
downloadpkgsrc-b30373248291c35b16007b30256df8eebdaa241d.tar.gz
Don't compile in the games group. PKGREVISION++
Diffstat (limited to 'games/xblockout/patches')
-rw-r--r--games/xblockout/patches/patch-score_c18
1 files changed, 18 insertions, 0 deletions
diff --git a/games/xblockout/patches/patch-score_c b/games/xblockout/patches/patch-score_c
new file mode 100644
index 00000000000..1ca51da55ed
--- /dev/null
+++ b/games/xblockout/patches/patch-score_c
@@ -0,0 +1,18 @@
+$NetBSD: patch-score_c,v 1.1 2011/12/15 04:18:16 dholland Exp $
+
+Don't compile in the games gid.
+
+XXX: this game runs all the time with elevated privs; it should be
+XXX: taught toggle setgid only when needed.
+
+--- score.c~ 2003-08-30 21:23:11.000000000 +0000
++++ score.c
+@@ -306,7 +306,7 @@ int addscore(int x, int y, int z, int p,
+ fd = creat(buf,(mode_t)0644) ;
+ else
+ fd = creat(buf,(mode_t)0664) ;
+- chown( buf,0,GROUP_GID ) ;
++ chown( buf,0, getegid() ) ;
+ }
+ #else
+ {