summaryrefslogtreecommitdiff
path: root/games/ladder/files/patch-ae
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2001-08-11 07:19:59 +0000
committerKris Kennaway <kris@FreeBSD.org>2001-08-11 07:19:59 +0000
commitc90d3c5b7e42ea9e594ee0746f572427ec178e5b (patch)
treebc6c5ae5a9f3a2894d4f667ce3d0163e95dd1236 /games/ladder/files/patch-ae
parentDon't install ceptd setuid root: it's a daemon you run as root from (diff)
Install this setgid games, not setuid games. Respect CC and CFLAGS.
Split the patches into one file per patch, per the porters handbook. Bump PORTREVISION to not setuid->setgid change.
Notes
Notes: svn path=/head/; revision=46066
Diffstat (limited to 'games/ladder/files/patch-ae')
-rw-r--r--games/ladder/files/patch-ae40
1 files changed, 40 insertions, 0 deletions
diff --git a/games/ladder/files/patch-ae b/games/ladder/files/patch-ae
new file mode 100644
index 000000000000..f7545c84d287
--- /dev/null
+++ b/games/ladder/files/patch-ae
@@ -0,0 +1,40 @@
+--- lscore.c.org Mon Oct 27 00:07:24 1997
++++ lscore.c Wed Feb 18 22:33:56 1998
+@@ -21,7 +21,7 @@
+ FILE *lfp;
+
+ for( i = 3; i; i-- )
+- if( lfp = fopen(lf,"r") )
++ if( (lfp = fopen(lf,"r")) )
+ {
+ fclose(lfp);
+ sleep(2);
+@@ -47,7 +47,7 @@
+
+ lock_score();
+ memset(scores,0,sizeof(scores));
+- if( sfp = fopen(sf,"r") )
++ if( (sfp = fopen(sf,"r")) )
+ {
+ for( scp = scores; scp < &scores[MAXSCORE]; scp++ )
+ if( fscanf(sfp,"%d%d%d%d",
+@@ -67,8 +67,8 @@
+ SCORE *scp;
+ for( scp = &scores[MAXSCORE]; scp > scores; scp-- )
+ if( scp[0].score > scp[-1].score ||
+- scp[0].score == scp[-1].score &&
+- scp[0].level >= scp[-1].level )
++ (scp[0].score == scp[-1].score &&
++ scp[0].level >= scp[-1].level ))
+ {
+ SCORE tmp = scp[0];
+ scp[0] = scp[-1];
+@@ -113,7 +113,7 @@
+ if( scores[i].score )
+ {
+ printw("%5d00 %2d ",scores[i].score,scores[i].level + 1);
+- if( pw = getpwuid(scores[i].uid) )
++ if( (pw = getpwuid(scores[i].uid)) )
+ addstr(pw->pw_name);
+ else
+ printw("UID %d",scores[i].uid);