Commit Graph

40 Commits

Author SHA1 Message Date
mycroft f9eca6973d Use setgid(), not setregid(). 2000-05-08 07:55:59 +00:00
jsm aec3f4964a Correct capital of the Philippines, allow usual spelling of Jakarta
and prefer the usual name of Cambodia to Khmer.

Problems reported by Robert Vollmert <rvollmert@gmx.net>.
2000-04-09 22:37:40 +00:00
jsm b5df0f4b98 Fix capital of Monaco. It should be Monaco rather than Monte Carlo;
checked with CIA World Factbook.

Problem reported by <capo@writeme.com>.
1999-12-16 14:13:23 +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 52c6bf2220 Change quiz `pres' data file to include vice-presidents, and fix some
minor errors.

From OpenBSD.
1999-09-14 20:04:02 +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
lukem dcab0210a0 convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
1999-02-13 02:54:17 +00:00
lukem b569ddabe9 don't install in /usr/share if NOSHARE is defined 1998-09-29 07:33:20 +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
hubertf 9c30da9453 Update, from PR bin/5829 by Joseph Myers <jsm28@cam.ac.uk> 1998-07-24 23:13:25 +00:00
hubertf 1705f47464 some more presidents, via tsarna@endicor.com in PR 4957 1998-02-09 07:05:35 +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 e9f6264b87 Add missing space between play and act. 1997-07-06 11:20:10 +00:00
mycroft 3353b6d236 Fix parsing error with escaped colons. 1997-07-06 11:19:16 +00:00
christos d59123b39b - Makefile cleanups 1997-03-24 22:15:37 +00:00
mouse 412433b44c alternate -> alternative, per PR 2643 1997-03-08 13:26:20 +00:00
tls 2ea7b8f11a Sync to 4.4BSD-Lite2 1997-01-07 12:24:57 +00:00
thorpej 943e25b8bf Use ${INSTALL}. 1996-10-18 02:48:24 +00:00
pk ff7a5b906d A more interesting set of machines (PR#645). 1996-06-02 23:37:33 +00:00
cgd 7991247981 don't forget MULT!! 1995-05-11 22:00:50 +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
cgd 765b078fbc src/games/quiz from Lite 1995-04-22 08:35:52 +00:00
pk 70efa792bd Two corrections from George Robbins (confirmed by `The lore of the train'
by C. Hamilton Ellis).
1995-01-08 20:01:44 +00:00
cgd c4c01d75b2 specify man pages the new way. 1994-12-22 09:31:26 +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 b4da561c15 kiil bogus install -d's 1994-02-10 02:31:32 +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
jtc ac6235ba1b Always use `install -d' to make sure destination directory exists & has
correct ownership and permissions.
1993-10-01 00:02:17 +00:00
mycroft 8542364e07 Add RCS identifiers. 1993-08-01 18:49:50 +00:00
mycroft b1bd4afedc Add RCS indentifiers. 1993-08-01 07:42:49 +00:00
mycroft cda4f8f6ee Add RCS identifiers. 1993-08-01 05:37:30 +00:00
mycroft f7f4b85ce9 Cleanup for GCC 2. 1993-04-18 21:52:18 +00:00
cgd 77b12ae35f make sure directory to install stuff exists before installing 1993-04-09 09:38:47 +00:00
cgd 5bfb98b1c8 added quiz from net-2 1993-04-04 10:49:24 +00:00