summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* This adds a check for memory allocation failure to one place inhubertf1999-07-261-2/+6
| | | | | | | backgammon(6). The use of write(2) for the message may seem odd, but is used in another place in this game. (Actually, a lot of backgammon(6) could do with being substantially cleaned up.) Patch submitted in PR 8080 by Joseph Myers <jsm28@cam.ac.uk>
* Check whatis(1) if we don't find an acronym matching the argumentbriggs1999-07-252-5/+16
|
* We're in section 6.thorpej1999-07-251-2/+2
|
* This patch marks unused parameters in atc(6) as such.hubertf1999-07-255-28/+28
| | | Patch submitted in PR 8058 by Joseph Myers <jsm28@cam.ac.uk>
* Hardcore const poisoninghubertf1999-07-251-4/+4
| | | Patch submitted by Joseph Myers <jsm28@cam.ac.uk> in PR 8057
* This patch makes atc(6) check for memory allocation failure.hubertf1999-07-242-6/+12
| | | | | Patch submitted by Joseph Myers <jsm28@cam.ac.uk> in PR 8056, with small enhancement to make clearer when loser() is called with NULL.
* Use getopt instead of home grown command line parsing.mjl1999-07-241-44/+30
| | | Patch from Joseph Myers <jsm28@cam.ac.uk> in PR/8062.
* remove sh warning when invoked with no argslukem1999-07-221-2/+2
|
* add wtfmrg1999-07-221-2/+2
|
* Allen Briggs' wtf(6) to grovel the acronyms database.mrg1999-07-223-0/+80
|
* const poisoninghubertf1999-07-2116-80/+80
| | | Patch submitted in PR 8039 by Joseph Myers <jsm28@cam.ac.uk>
* When atc(6) parses its game definition files, the check for `width'hubertf1999-07-211-3/+3
| | | | | | being defined more than once incorrectly checks for `height' having been previously defined instead. Patch submitted in PR 8038 by Joseph Myers <jsm28@cam.ac.uk>
* Drop setgid privs early, via OpenBSDhubertf1999-07-211-2/+5
| | | Reported in PR 5970 by Joseph Myers <jsm@octomino.demon.co.uk>
* Drop setgid privs early. Via OpenBSD, reported in PR 5970 byhubertf1999-07-211-2/+5
| | | Joseph Myers <jsm28@cam.ac.uk>
* Drop setgid privs early; via OpenBSD reported in PR 5970 byhubertf1999-07-211-2/+6
| | | Joseph Myers <jsm28@cam.ac.uk>
* Drop setgid privileges early. Derived from OpenBSD and sent in as PR 5970hubertf1999-07-213-13/+25
| | | by Joseph Myers <jsm28@cam.ac.uk>.
* Back out last due to think o on my side: we don't start banner throughhubertf1999-07-191-5/+2
| | | | dm(6), so there's no setgid privileges to discard. Pointed out by Joseph S. Myers <jsm28@cam.ac.uk>
* Drop setgid privs passed from dm(6).hubertf1999-07-191-2/+5
| | | Patch submitted in PR 5945 by Joseph S. Myers <jsm28@cam.ac.uk>
* As in previously sent patches: backgammon(6) does not need setgidhubertf1999-07-192-4/+10
| | | | | games privileges from dm, so should revoke them on startup. Patch submitteed in PR 8024 bye Joseph Myers <jsm28@cam.ac.uk>
* Adventure(6) should check for errors (e.g. disk full or quotahubertf1999-07-171-3/+7
| | | | | exceeded) when writing out saved games. Do so! Patch supplied by Joseph Myers <jsm28@cam.ac.uk> in PR 8016
* The patch below improves the security of the game atc(6), by having ithubertf1999-07-176-34/+78
| | | | | | | | | | open the score file at the start and then drop all setgid privileges while keeping a (close-on-exec) file descriptor open to it. In order to allow this the static data files have to be made world readable. In addition a potential buffer overrun with corrupted score files is avoided by more careful use of scanf (note that SCORE_SCANF_FMT is defined alongside the definition of the relevant structure). Submitted in PR 8015 by Joseph Myers <jsm28@cam.ac.uk>
* Add two .Els that nroff was complaining to miss.hubertf1999-07-171-1/+3
|
* This patch (a) makes arithmetic(6) revoke any setgid privileges it gothubertf1999-07-171-3/+6
| | | | | from dm; (b) marks an unused parameter as such. Submitted in PR 8014 by Joseph Myers <jsm28@cam.ac.uk>
* This patch cleans up the handling of the variable `saved' inhubertf1999-07-164-11/+14
| | | | | | | | | | | | | | | | | | | | | adventure(6). The handling of this variable is somewhat confusing, since it is used for two different purposes (controlling the time required before a saved game can be restored, and controlling various aspects of dwarf behaviour); in fact, it is also declared twice in hdr.h. Except possibly when saving a game fails, these uses can never interfere; when used for controlling dwarf behaviour, we always have saved == -1. This can be better understood with reference to the original PDP-10 FORTRAN source (URL in patch, since hdr.h references the comments of the FORTRAN as still relevant to this version) of which the C version is a direct translation: the wrong value for `saved' meant that someone was cheating and had bypassed normal initialisation. Saving was done by halting and telling the user to save their core image, so the question of carrying on after saving failed to open the output file did not arise. This patch separates the uses of `saved' into uses of two separate variables. Closes PR 8005 by Joseph Myers <jsm28@cam.ac.uk>
* Const poisoning.hubertf1999-07-141-10/+10
| | | Patch submitted in PR 7993 by Joseph Myers <jsm28@cam.ac.uk>
* This patch fixes a -Wcast-qual warning in wump(6).hubertf1999-07-141-3/+3
| | | Submitted in 7994 by Joseph Myers <jsm28@cam.ac.uk>
* Fix scoring, submitted in PR 7992 by Joseph Myers <jsm28@cam.ac.uk>hubertf1999-07-141-8/+7
|
* From PR 7987 by Joseph Myers <jsm28@cam.ac.uk>:hubertf1999-07-146-26/+26
| | | | More battlestar(6) spelling and punctuation fixes for battlestar(6). These ones come from OpenBSD.
* This patch makes fish(6) honour PAGER for viewing the instructions.hubertf1999-07-141-6/+18
| | | | | | | | The detailed behaviour follows POSIX.2. A similar patch for wump(6) which was accepted is in bin/6699. Fish does not need any setgid privileges it gets from dm, so this patch also moves the gid resetting earlier. Reported in PR 7986 by Joseph Myers <jsm28@cam.ac.uk>
* From PR 7988 by Joseph Myers <jsm28@cam.ac.uk>: use the symbolichubertf1999-07-141-5/+5
| | | | name SEEK_SET for values which end up as the third argument of fseek(), rather than a hard-coded 0.
* From PR 7985 by Joseph Myers <jsm28@cam.ac.uk>:hubertf1999-07-141-2/+5
| | | | | games/adventure/setup.c fails to check for errors when writing its output. This means that, if the disk fills up at this point during a build, it would nevertheless fail to return an error status.
* man page rewritten into -mandoc by dholland@eecs.harvard.edu; from PR7861sommerfeld1999-06-271-350/+237
|
* Fixi uninit vars warnings.christos1999-05-161-3/+3
|
* Add missing prototypeschristos1999-05-163-8/+20
|
* Add -A for automatic playing mode.christos1999-05-1510-62/+531
| | | Make the score file MI
* Fix Y2K buffer overflow (from OpenBSD).kristerw1999-04-251-8/+4
|
* Buffer overflow fix (from OpenBSD)kristerw1999-04-241-3/+3
|
* initscr() returns a pointer, compare return value with NULL and notsimonb1999-04-182-6/+6
| | | | an int. Compatible with other versions of curses.
* Don't frob the interals of a WINDOW*, use the mvinch() macro.simonb1999-04-181-7/+3
|
* change:cgd1999-04-061-2/+2
| | | | | | | | .Sh "SEE ALSO" to: .Sh SEE ALSO The doc macros check for the latter (actually just for 'SEE' as the first argument to .Sh) to set the section header SEE ALSO flag, which modifies some behaviour (e.g. references done with .Rs/.Re).
* s/SETUIDGAME/SETGIDGAME/ - catch up with the rest of the world.abs1999-04-051-2/+2
|
* defined(attron) does not mean there is a <term.h>mrg1999-03-294-23/+8
|
* Fix object recognition, per PR 6048 by Joseph S. Myers <jsm28@cam.ac.uk>.hubertf1999-03-251-2/+32
|
* More and more .Os cleanups. .Os is defined in the tmac.doc-common file,garbled1999-03-226-12/+12
| | | | so we shouldn't override it with versions in the manpages. Many more to come.
* Newline and usage cosmetics from Soren S. Jorvang <soren@t.dk> PR7205abs1999-03-221-4/+4
|
* set MKLINT=no. noted by NAKAJIMA Yoshihiro <nakayosh@kcn.ne.jp>lukem1999-03-131-2/+3
|
* Fix .Bl/.El imbalance.erh1999-03-104-4/+8
|
* remove NOPROG (nothing uses it). however, set MKOBJ=no if appropriatelukem1999-02-131-6/+4
|
* convert from NOxxx= to MKxxx=no.lukem1999-02-1321-43/+61
| | | include <bsd.own.mk> if testing a MKxxx variable.
* Remove unneeded "mips compiler bug" workaround from original code importedsimonb1999-02-111-5/+1
| | | in 1994.