summaryrefslogtreecommitdiffstats
path: root/games
Commit message (Collapse)AuthorAgeFilesLines
* Allow fortune to use /dev/urandom if available to obtain its randommpp1997-02-231-6/+37
| | | | | | | | | | | numbers. If /dev/urandom is unavailable, it will fall back to using the random() function. I did this because I'm sick of seeing the same handful of fortunes over and over, and I've seen the exact same fortune one too many times when starting up two login shells at the same time. 2.2 safe.
* Fix sizeof/strlen typo and limit scanf length.eivind1997-02-231-2/+2
| | | | scanf spotted by: Aarn Bornstein <aaronb@j51.com>
* Add setuid() before running the pager - from the code audit.eivind1997-02-231-0/+4
| | | | Submitted by: Mark Huizer <xaa@stack.nl>
* Revert $FreeBSD$ to $Id$peter1997-02-227-7/+7
|
* #include <string.h> to help silence -Wall.mpp1997-02-201-0/+1
|
* Remove buffer overflow and tempfile race, remove <sys/time.h> hack (andeivind1997-02-2014-87/+122
| | | | | | | | 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>
* 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.)
* Buffer overflow from OpenBSDimp1997-02-091-10/+10
| | | | | | | | 1.3 deraadt: buf oflow, felix@mamba.pond.sub.org Obtained from: OpenBSD Not sure how to exploit this, but may be a backmerge candidate.
* 444 -> ${NOBINMODE}wosch1997-02-0910-18/+19
| | | | | /usr/share -> ${SHAREDIR} /usr/games -> ${BINDIR}
* $* -> "$@"wosch1997-02-091-1/+1
| | | | use exec for last command in shell script
* The fact that people can't put the proper source on Kierkegaardsphk1997-02-032-3/+4
| | | | | | | most famous insult to humanity can be forgiven, afterall, it almost underlines the quote with irony, if one knows the context. But to misspell the name of Alfred E. Neuman ...
* 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.
* Correct some grammar. Closes PR# 2520.mpp1997-01-261-2/+2
| | | | Submitted by: John-Mark Gurney <gurney_j@efn.org>
* 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?
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-147-7/+7
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Fix some typos and remove a couple of duplicatempp1997-01-082-24/+2
| | | | | | fortunes. Closes PR#s 2358 and 2402. Submitted by: John-Mark Gurney <gurney_j@efn.org>
* Use ${COPY} instead of -c for installing non-source files.bde1997-01-011-8/+8
|
* comma police for section SEE ALSOwosch1996-12-221-1/+2
| | | | Sponsored by: Vin de Pays de l'Aude
* Correct the location of the trek documentation in thempp1996-12-141-1/+1
| | | | SEE ALSO section of the man page. Closes PR# 2009.
* Fixed extra columns in output for input lines with leading spaces.bde1996-12-131-1/+3
|
* Made `setup' depend on libraries.bde1996-12-131-1/+1
|
* Fixed missing declaration of malloc().bde1996-12-131-1/+2
|
* Hack around misuse of reserved names `clock' and and `time' in a differentbde1996-12-131-4/+6
| | | | | | 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>.
* Remove bogus declaration of malloc(). Closes PR#2197jkh1996-12-131-1/+0
|
* Fix minor typo/grammatical errorgpalmer1996-11-221-1/+1
| | | | Submitted by: John-Mark Gurney <jmg@nike.efn.org> in PR 2085
* If not on a tty, don't do "--more--" processing. Someday, I will getjkh1996-11-071-0/+2
| | | | rogomatic to work with this version. :)
* Uncomment static from collate_range_cmp, no more in locale.hache1996-10-311-1/+1
|
* Replace collate_range_cmp call with its codeache1996-10-311-0/+17
|
* Install the rumors file.jkh1996-10-191-0/+2
| | | | | Submitted-By: koshy@india.hp.com Closes-PR#: 1883
* Set the effective user id to that of the real user id whenalex1996-10-151-0/+13
| | | | saving/restoring a game (necessary when adventure is invoked via dm).
* delete doubled words, e.g.: "the the" -> "the"wosch1996-10-052-2/+5
|
* Eliminated includes of the "temporary" backwards compatibility headerbde1996-09-241-6/+2
| | | | | | <sys/dir.h> in applications. Maintained existing (inadequate) ifdefs for dir.h vs dirent.h in libdialog, amd and rarpd, but didn't add any new ones.
* Fixed annoying non-null output for `make depend'. SRCS should onlybde1996-09-221-4/+4
| | | | | | | | be used for C, C++ and assembler sources if <bsd.prog.mk> is included. It was used for general files. This caused the __depend_* lists in <bsd.dep.mk> to be empty, so mkdep was never run, so .depend never existed, so it was always out of date, so `rm -f .depend' was always executed to update it.
* Fixed DPADD.bde1996-09-052-2/+2
|
* Convert to newly aded collate compare functionache1996-08-121-32/+3
|
* Pick collate info tooache1996-08-121-1/+1
|
* Correctly declare main() as `int'.joerg1996-07-171-6/+10
| | | | | | Closes PR # bin/1385: /usr/games/pom, invalid de... Submitted by: zach@freebsd.gaffaneys.com (Zach Heilig)
* Bring in my changes for removing the pestilent obj links (unless youjkh1996-06-241-4/+4
| | | | | really want them) from /usr/src. This is the final version of the patches, incorporating the feedback I've received from -current.
* Handle sorting in better wayache1996-06-091-16/+34
|
* Activate collateache1996-06-051-1/+1
|
* Backed out yacc changes.bde1996-06-032-3/+3
|
* Use new yacc rule.phk1996-05-302-3/+3
|
OpenPOWER on IntegriCloud