summaryrefslogtreecommitdiffstats
path: root/wump/wump.c
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Use STD*_FILENO.kleink1999-09-101-4/+4
|
* Include <time.h> in various places in the games where time() or time_tjsm1999-09-091-2/+3
| | | are used.
* This patch fixes a -Wcast-qual warning in wump(6).hubertf1999-07-141-3/+3
| | | Submitted in 7994 by Joseph Myers <jsm28@cam.ac.uk>
* Only invoke pager given in $PAGER if output goes to a tty, feed pagerhubertf1999-02-101-9/+28
| | | via stdin, per PR 6699 by Joseph Myers <jsm28@cam.ac.uk>
* mark non-returning functions (PR#6144 by Joseph Myers <jsm28@cam.ac.uk>)hubertf1998-09-131-3/+3
|
* Add braces to make the new egcs happy.veego1998-08-301-4/+6
|
* WARNSifylukem1997-10-121-23/+71
|
* 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 IDscgd1995-04-221-7/+12
|
* Add RCS identifiers.mycroft1993-08-011-1/+2
|
* initial import of 386bsd-0.1 sourcescgd1993-03-211-0/+778