summaryrefslogtreecommitdiffstats
path: root/rogue/score.c
Commit message (Collapse)AuthorAgeFilesLines
* Use __dead and __printflike instead of __attribute__.dholland2011-08-261-3/+3
|
* sprinkle staticdholland2009-08-121-7/+13
|
* ANSIfy. Remove unnecessary casts. Clean up for -Wsign-compare. Make moredholland2008-01-141-50/+22
| | | | things file-static. Other minor tidyups, and fix a couple minor bugs found along the way.
* Whitespace/KNF nits.dholland2008-01-141-8/+8
|
* Comprehensive (or at least extensive) string handling cleanup for rogue.dholland2007-12-271-179/+272
| | | | | | | | This patch dates (mostly) back to 2002; the critical parts of it were handled back then by security-officer. As far as I know, there's nothing exploitable fixed herein. A slightly earlier version of this patch was reviewed by Christian Biere when I filed it as PR 34750.
* Move UCB-licensed code from 4-clause to 3-clause licence.agc2003-08-071-7/+3
| | | Patches provided by Joel Baker in PR 22269, verified by myself.
* Make "rogue" build with "WARNS=2". The necessary patches were suppliedtron2002-07-071-4/+4
| | | by David A. Holland in PR bin/17498.
* Fix for FreeBSD/13278, from FreeBSD:wiz2001-08-091-3/+3
| | | | | | | When a game ends that makes the top 10, the function insert_score in score.c is called to make the new score file. But the case for KFIRE (killed by fire) incorrectly uses strcpy instead of strcat (all the other cases use strcat). This puts the string in the wrong place and corrupts the score file.
* Security improvements for games (largely from or inspired by OpenBSD).jsm1999-09-121-2/+5
| | | | | | | | | | | | | | | Games which run setgid from dm, but don't need to, should drop their privileges at startup. Games which have a scorefile should open it at startup, then drop all privileges leaving just the open writable file descriptor. If the game can invoke subprocesses, this should be made close-on-exec. Games with scorefiles should make sure they do not get a file descriptor < 3. (Otherwise, they could get confused and corrupt the scorefile when using stdin, stdout or stderr.) Some old setuid revokes from the days of setuid games change into gid revokes.
* constify, per PR 6148hubertf1998-11-101-10/+12
|
* WARNSify (not an insignificant task...)lukem1997-10-121-30/+44
|
* clean up import, NetBSD RCS Idscgd1995-04-221-4/+9
|
* new curses updatecgd1993-11-101-2/+3
|
* Use `r+' rather than `a+' when opening score file.mycroft1993-09-231-2/+2
|
* Add RCS identifiers.mycroft1993-08-011-1/+2
|
* initial import of 386bsd-0.1 sourcescgd1993-03-211-0/+581