summaryrefslogtreecommitdiffstats
path: root/games/backgammon
Commit message (Collapse)AuthorAgeFilesLines
* List -h option also in the SYNOPSIS line.max1997-02-151-1/+1
|
* Added an option `-h' which gives you usage info.max1997-02-152-10/+18
| | | | | (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.)
* Make the description of command-line args match the reality.max1997-02-111-21/+15
| | | | | | - 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.)
* Instead of swapping ruid and euid before and after touching user's file,max1997-02-013-4/+12
| | | | | simply drop the privilege right after the program is started. Thanks to bde for giving me good suggestion about this problem.
* Include string.h for prototype of strdup().max1997-02-012-0/+2
|
* Style police:max1997-01-313-11/+11
| | | | | | | | | - Indentation corrections - Spaces -> tabs. - func() -> func () (To be consistent with the original code.) - Check if getopt() returns -1, not EOF. Suggested by: bde
* Better handling of command-line argument:max1997-01-305-45/+48
| | | | | | | | | 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.
* Oops, setreuid() also needed before and after opening/closing the recover filemax1997-01-301-0/+2
| | | | | in recover(). 2.2 candidate.
* Do getreuid(geteuid(), getuid()) before opening file to save the game andmax1997-01-301-0/+2
| | | | | | after closing it. This fixes bug that user couldn't save the game in progress. 2.2 candidate.
* Fix typo in instruction message.max1997-01-231-2/+2
|
* When calling recover() from getarg(), also check to see if the firstmax1997-01-231-1/+1
| | | | | | | | | 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?
* gets() -> fgets(). I'm tired of looking at the compiler messages!jkh1995-12-011-6/+6
|
* Remove trailing whitespace.rgrimes1995-05-306-24/+24
|
* Change all references to LIBTERM and -ltermlib to LIBTERMCAP and -ltermcaprgrimes1994-09-112-2/+2
|
* Bring in the 4.4 Lite games directory, modulo man page changes and segregationjkh1994-09-0427-0/+6246
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
OpenPOWER on IntegriCloud