summaryrefslogtreecommitdiffstats
path: root/quiz/quiz.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix some uses of NULL as non-pointer and 0 for null pointer.jsm1999-09-171-3/+3
|
* 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.
* Add use of `const' where appropriate to the games.jsm1999-09-081-14/+16
| | | | | | | | | 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.
* mark non-returning functions (PR#6144 by Joseph Myers <jsm28@cam.ac.uk>)hubertf1998-09-131-3/+3
|
* - WARNSifylukem1997-09-201-30/+37
| | | | | | - deprecate register - getopts returns -1 not EOF - last character returned by fgetln() isn't always \n - cleanup .Nm use
* Fix parsing error with escaped colons.mycroft1997-07-061-3/+11
|
* Sync to 4.4BSD-Lite2tls1997-01-071-4/+7
|
* RCS Idscgd1995-04-221-0/+6
|
* fix bugs previously fixed. whee.cgd1995-04-221-2/+3
|
* un-munge import.cgd1995-04-221-19/+18
|
* Theorem:pk1994-04-081-43/+17
| | | | | | | | | | 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!"
* rename fgetline() and sharpen axe for bostic...cgd1994-01-041-3/+3
|
* update for fgetlinecgd1993-12-221-3/+5
|
* fix uninitialized variable bug that caused 'quiz function ed-command'cgd1993-11-171-2/+2
| | | to dump core. from Szabolcs Szigeti <pink@bagira.fsz.bme.hu>
* Add RCS identifiers.mycroft1993-08-011-1/+2
|
* added quiz from net-2cgd1993-04-041-0/+379