From c90d3c5b7e42ea9e594ee0746f572427ec178e5b Mon Sep 17 00:00:00 2001 From: Kris Kennaway Date: Sat, 11 Aug 2001 07:19:59 +0000 Subject: 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. --- games/ladder/files/patch-ae | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 games/ladder/files/patch-ae (limited to 'games/ladder/files/patch-ae') 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); -- cgit v1.2.3