Commit Graph

17 Commits

Author SHA1 Message Date
Steve Price
af71cfbb87 Merge a bunch of cleanups from NetBSD.
PR:		8083
Submitted by:	Stephen J. Roznowski <sjr@home.net>
Obtained from:	a whole slew of NetBSD PRs
1999-04-19 03:59:02 +00:00
John Birrell
070a701183 tv_sec in timeval is a long, and a time_t is not necessarily a long. 1998-05-09 09:41:30 +00:00
John Birrell
ea565b5141 Add #include string.h to get prototypes. 1998-05-09 09:39:46 +00:00
John Birrell
eb3846e9e5 Add 'extern' to arrays that are declared and initialised elsewhere. 1998-05-09 09:38:11 +00:00
Andrey A. Chernov
6e429392ac Cleanup
Convert to random()
1997-09-24 22:40:45 +00:00
Andrey A. Chernov
ce11b09469 Revoke privs once at earlier stage and not mess with setegid in save
Fix save: missing creation modes arg and wrong symlink test
Small C cleanup
1997-09-24 09:42:33 +00:00
Andrey A. Chernov
92cceb63b0 Beforeinstall scorefile to prevent it owned by first who run the game 1997-09-24 03:43:30 +00:00
Eivind Eklund
34a13bf4cb Change games from setuid games to setgid games.
Reviewed by:	maybe@yes.no
Obtained from:	OpenBSD (mostly deraadt@openbsd.org)
1997-09-01 00:34:51 +00:00
Andrey A. Chernov
08a77c42e1 Back out MAXLOGNAME fix, Bruce points that copyinstr require NUL 1997-03-03 07:59:54 +00:00
Andrey A. Chernov
7c66c05d49 Add +1 to NUL terminate after MAXLOGNAME 1997-03-02 21:52:02 +00:00
Eivind Eklund
44b732f7dc Actually remove sys/time.h hack; fix typo.
Pointed out by:	bde
1997-02-26 20:10:45 +00:00
Eivind Eklund
c52e467e03 Remove buffer overflow and tempfile race, remove <sys/time.h> hack (and
need for it), change definition of setbit() macro and friends to be
compatible with <sys/param.h>.
The bugs were discovered and fixed as a result of the FreeBSD code audit.

Submitted by:	Aaron Bornstein <aaronb@j51.com>, Mark Huizer <xaa@stack.nl>
1997-02-20 03:04:54 +00:00
Bruce Evans
621d611a9d Hack around misuse of reserved names clock' and and time' in a different
way.  Defining KERNEL before including <sys/time.h> broke when "opt_cpu.h"
was included in a deeply nested header, except in -current where the
problem is masked by a namespace pollution bug in <stdio.h>.
1996-12-13 13:12:02 +00:00
Rodney W. Grimes
010f5413b5 Remove trailing whitespace. 1995-05-30 03:37:36 +00:00
Andrey A. Chernov
62046959a1 Prevent core dump for root
Obtained from: partially from 1.1.5.1
1994-12-03 02:27:40 +00:00
Rodney W. Grimes
0e58d91938 Change all references to LIBTERM and -ltermlib to LIBTERMCAP and -ltermcap 1994-09-11 21:32:28 +00:00
Jordan K. Hubbard
554eb505f8 Bring in the 4.4 Lite games directory, modulo man page changes and segregation
of the x11 based games.  I'm not going to tag the originals with bsd_44_lite
and do this in two stages since it's just not worth it for this collection,
and I've got directory renames to deal with that way.  Bleah.
Submitted by:	jkh
1994-09-04 04:03:31 +00:00