Commit Graph

18 Commits

Author SHA1 Message Date
mycroft f9eca6973d Use setgid(), not setregid(). 2000-05-08 07:55:59 +00:00
jsm b2d99aa2eb Make quiz use POSIX.2 pager handling. 1999-12-16 13:45:48 +00:00
jsm ba40c8d63d Fix some uses of NULL as non-pointer and 0 for null pointer. 1999-09-17 17:07:11 +00:00
jsm 5367f3400c Security improvements for games (largely from or inspired by OpenBSD).
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.
1999-09-12 09:02:20 +00:00
jsm 092d313019 Add use of `const' where appropriate to the games.
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.
1999-09-08 21:17:44 +00:00
hubertf 1c9494f62b mark non-returning functions (PR#6144 by Joseph Myers <jsm28@cam.ac.uk>) 1998-09-13 15:27:25 +00:00
lukem d829744648 - WARNSify
- deprecate register
- getopts returns -1 not EOF
- last character returned by fgetln() isn't always \n
- cleanup .Nm use
1997-09-20 14:28:16 +00:00
mycroft 3353b6d236 Fix parsing error with escaped colons. 1997-07-06 11:19:16 +00:00
tls 2ea7b8f11a Sync to 4.4BSD-Lite2 1997-01-07 12:24:57 +00:00
cgd ee0f9d10fe RCS Ids 1995-04-22 10:16:53 +00:00
cgd 2037c75ed9 fix bugs previously fixed. whee. 1995-04-22 09:59:01 +00:00
cgd a432dc58b8 un-munge import. 1995-04-22 09:06:33 +00:00
pk c541862af5 Theorem:
Computer scientists don't care much for poetry.
Prove:
	They haven't run `quiz poem next-line' for ages.

get_file(), appdstr() and quiz() we made
one more correctly catenate.
On top of that, repeat after me:
"Thou shallst not err, except in libc!"
1994-04-08 08:33:13 +00:00
cgd 02254e0c37 rename fgetline() and sharpen axe for bostic... 1994-01-04 05:16:44 +00:00
cgd a60129f588 update for fgetline 1993-12-22 07:23:27 +00:00
cgd 8eeaaddf1b fix uninitialized variable bug that caused 'quiz function ed-command'
to dump core.  from Szabolcs Szigeti <pink@bagira.fsz.bme.hu>
1993-11-17 11:58:40 +00:00
mycroft 8542364e07 Add RCS identifiers. 1993-08-01 18:49:50 +00:00
cgd 5bfb98b1c8 added quiz from net-2 1993-04-04 10:49:24 +00:00