steve
d59a3ca336
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
jb
9e9eb5452f
Add 'extern' to arrays that are declared and initialised in other files.
1998-05-09 09:27:33 +00:00
jb
936a497f2c
Add 'extern' to arrays that are declared and initialised in other files.
...
Who writes code like this?!
1998-05-09 09:25:26 +00:00
jb
f21cd75f30
Add #include stdlib.h to get prototypes.
1998-05-09 09:24:12 +00:00
jb
005dd2f7a4
Change prototype for addbuf to make it compatible with tputs now that
...
there is a prototype to check it against.
1998-05-09 09:22:33 +00:00
jb
6ebc5834dc
Add #include string.h, stdlib.h and termcap.h to get prototypes.
...
Change prototype for addbuf to make it compatible with tputs now that
there is a prototype to check it against.
1998-05-09 09:21:28 +00:00
jb
93326f26e1
Add #include string to get prototypes.
1998-05-09 09:19:24 +00:00
jb
11929d69ae
Add 'extern' to those arrays that are declared and initialised
...
in other files.
1998-05-09 09:18:33 +00:00
ache
24ebd3d8b6
Remove unused file
1997-09-24 23:37:07 +00:00
ache
77b0d128db
Simplify revoke
1997-09-24 09:14:38 +00:00
ache
3e97e057a5
Oops, fix my error from prev commit (revoke simplification)
1997-09-24 06:54:15 +00:00
ache
369ad2ce73
Cleanup
...
Simplify revoke: only sgid needed to be revoked
Use srandomdev
1997-09-24 06:39:23 +00:00
eivind
d8e95d8c1a
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
max
fa88f399c7
List -h option also in the SYNOPSIS line.
1997-02-15 11:22:19 +00:00
max
87555db6e8
Added an option `-h' which gives you usage info.
...
(According to the original man page, giving `-' by itself as the argument
is supposed to do this, but it seems that it never worked that way.)
1997-02-15 06:12:07 +00:00
max
37e9ffbc31
Make the description of command-line args match the reality.
...
- Options must be preceeded by a `-'.
- Backgammon doesn't give, and hasn't given you any usage info.
(Maybe this should be fixed in the program.)
1997-02-11 18:52:55 +00:00
max
b0c88e4d21
Instead of swapping ruid and euid before and after touching user's file,
...
simply drop the privilege right after the program is started.
Thanks to bde for giving me good suggestion about this problem.
1997-02-01 21:30:50 +00:00
max
0343f28794
Include string.h for prototype of strdup().
1997-02-01 02:54:12 +00:00
max
bd5d098ad1
Style police:
...
- Indentation corrections
- Spaces -> tabs.
- func() -> func () (To be consistent with the original code.)
- Check if getopt() returns -1, not EOF.
Suggested by: bde
1997-01-31 15:04:23 +00:00
max
0988434e5d
Better handling of command-line argument:
...
1. Pass argc and argv to getarg and process them with getopt().
2. Instead of using an array to save arg characters, use array of
pointers and call backgammon/teachgammon with execv, instead of execl.
This should fix problems with calling teachgammon.
2.2 candidate.
1997-01-30 07:12:59 +00:00
max
c2172b20d2
Oops, setreuid() also needed before and after opening/closing the recover file
...
in recover().
2.2 candidate.
1997-01-30 01:51:45 +00:00
max
9abde98e48
Do getreuid(geteuid(), getuid()) before opening file to save the game and
...
after closing it.
This fixes bug that user couldn't save the game in progress.
2.2 candidate.
1997-01-30 01:29:28 +00:00
max
534aae0b9e
Fix typo in instruction message.
1997-01-23 09:02:49 +00:00
max
25753ac2ab
When calling recover() from getarg(), also check to see if the first
...
character of the argument being processed isn't '\0'.
This fixes problem with backgammon exiting abnormally when you answer 'y' to
the question it asks if you need instruction for the game.
2.2 cnadidate, maybe?
1997-01-23 04:41:01 +00:00
jkh
eb9ddde393
gets() -> fgets(). I'm tired of looking at the compiler messages!
1995-12-01 08:10:17 +00:00
rgrimes
30ef9631c5
Remove trailing whitespace.
1995-05-30 03:37:36 +00:00
rgrimes
2b975cb8d0
Change all references to LIBTERM and -ltermlib to LIBTERMCAP and -ltermcap
1994-09-11 21:32:28 +00:00
jkh
057afceb86
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