Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix for FreeBSD/13278, from FreeBSD: | 2001-08-09 | 1 | -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). | 1999-09-12 | 1 | -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 6148 | 1998-11-10 | 1 | -10/+12 | |
| | |||||
* | WARNSify (not an insignificant task...) | 1997-10-12 | 1 | -30/+44 | |
| | |||||
* | clean up import, NetBSD RCS Ids | 1995-04-22 | 1 | -4/+9 | |
| | |||||
* | new curses update | 1993-11-10 | 1 | -2/+3 | |
| | |||||
* | Use `r+' rather than `a+' when opening score file. | 1993-09-23 | 1 | -2/+2 | |
| | |||||
* | Add RCS identifiers. | 1993-08-01 | 1 | -1/+2 | |
| | |||||
* | initial import of 386bsd-0.1 sources | 1993-03-21 | 1 | -0/+581 | |