summaryrefslogtreecommitdiffstats
path: root/snake/snscore
Commit message (Collapse)AuthorAgeFilesLines
* Security improvements for games (largely from or inspired by OpenBSD).jsm1999-09-121-2/+6
| | | | | | | | | | | | | | | 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.
* Check for failure of malloc() and calloc() at various places in the games.jsm1999-09-091-4/+5
|
* Add use of `const' where appropriate to the games.jsm1999-09-081-3/+3
| | | | | | | | | This merges in all such remaining changes from the Linux port of the NetBSD games, except in hunt (where substantial changes from OpenBSD need to be looked at). Some such changes were previously covered in PRs bin/6041, bin/6146, bin/6148, bin/6150, bin/6151, bin/6580, bin/6660, bin/7993, bin/7994, bin/8039, bin/8057 and bin/8093.
* convert from NOxxx= to MKxxx=no.lukem1999-02-131-2/+2
| | | include <bsd.own.mk> if testing a MKxxx variable.
* fix main() prototype, per PR#5867hubertf1998-09-111-6/+4
|
* const poisoning.mycroft1998-07-271-3/+3
|
* use CPPFLAGS instead of CFLAGSlukem1997-10-221-2/+2
|
* WARNSify, KNFifylukem1997-10-121-10/+13
|
* Various changes to make games compile w/o warnings on the alpha:cgd1995-04-241-2/+3
| | | | Include appropriate includes, delete bogus function declarations, change sizes of variables and casts.
* clean up import, NetBSD RCS Ids, etc.cgd1995-04-222-20/+25
|
* initialize variable!cgd1994-04-051-1/+2
|
* Add RCS identifiers.mycroft1993-08-011-1/+2
|
* Add RCS identifiers.mycroft1993-08-011-1/+2
|
* initial import of 386bsd-0.1 sourcescgd1993-03-212-0/+126