summaryrefslogtreecommitdiffstats
path: root/robots/score.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix -Wsign-compare warnings.jsm1999-09-181-5/+4
|
* Security improvements for games (largely from or inspired by OpenBSD).jsm1999-09-121-9/+8
| | | | | | | | | | | | | | | 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.
* Use the symbolic names `SEEK_SET' and `O_RDONLY' where appropriate injsm1999-09-081-3/+3
| | | the games.
* Add use of `const' where appropriate to the games.jsm1999-09-081-5/+6
| | | | | | | | | 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.
* Add missing prototypeschristos1999-05-161-2/+5
|
* Add -A for automatic playing mode.christos1999-05-151-29/+84
| | | Make the score file MI
* deprecate bzero, rindex, etc. use symbolic constants in open()lukem1997-10-121-6/+6
|
* WARNSifylukem1997-10-121-23/+19
|
* clean up importcgd1995-04-221-4/+9
|
* Add RCS identifiers.mycroft1993-08-011-1/+2
|
* initial import of 386bsd-0.1 sourcescgd1993-03-211-0/+184