| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
| |
saved game to continue playing" problem described in bin/6077.
Patch contributed by Joseph Myers <jsm28@cam.ac.uk> in PR 8092.
|
|
|
|
|
|
|
|
|
|
|
| |
with variations in EINTR behaviour, but the optimisation of using the
BSD version where the SYSV version isn't needed is insignificant.
This patch therefore simplifies the code by making there be just one
version, a more paranoid (about EOF when errno is already EINTR)
version of the SYSV code. Since the BSD/SYSV defines are mainly used
to control whether BSD timers are used, this helps where BSD timers
but SYSV EINTR handling are wanted.
Patch supplied in PR 8091 by Joseph Myers <jsm28@cam.ac.uk>
|
|
|
|
|
|
|
|
|
|
| |
allowing the user to choose the name of the save file and specify it
on the command line when restoring. It also eliminates a buffer
overrun in determining the path to the save file, and any particular
arbitrary limit on the name length. In the name of a tidier home
directory, the default name is changed from "Bstar" to ".Bstar".
Patch supplied in PR 8085 by Joseph Myers <jsm28@cam.ac.uk>
Minor modification (s/startup/filename/ in initialize()) by me.
|
|
|
| |
<TAB>s
|
| |
|
|
|
|
|
| |
missed in bin/6144.
Patch submitted in PR 8082 by Joseph Myers <jsm28@cam.ac.uk>
|
|
|
|
|
| |
recover a saved game, then you specify a file name.
Patch submitted in PR 8081 by Joseph Myers <jsm28@cam.ac.uk>
|
|
|
|
|
|
|
| |
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>
|
| |
|
| |
|
|
|
| |
Patch submitted in PR 8058 by Joseph Myers <jsm28@cam.ac.uk>
|
|
|
| |
Patch submitted by Joseph Myers <jsm28@cam.ac.uk> in PR 8057
|
|
|
|
|
| |
Patch submitted by Joseph Myers <jsm28@cam.ac.uk> in PR 8056,
with small enhancement to make clearer when loser() is called
with NULL.
|
|
|
| |
Patch from Joseph Myers <jsm28@cam.ac.uk> in PR/8062.
|
| |
|
| |
|
| |
|
|
|
| |
Patch submitted in PR 8039 by Joseph Myers <jsm28@cam.ac.uk>
|
|
|
|
|
|
| |
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>
|
|
|
| |
Reported in PR 5970 by Joseph Myers <jsm@octomino.demon.co.uk>
|
|
|
| |
Joseph Myers <jsm28@cam.ac.uk>
|
|
|
| |
Joseph Myers <jsm28@cam.ac.uk>
|
|
|
| |
by Joseph Myers <jsm28@cam.ac.uk>.
|
|
|
|
| |
dm(6), so there's no setgid privileges to discard. Pointed out by
Joseph S. Myers <jsm28@cam.ac.uk>
|
|
|
| |
Patch submitted in PR 5945 by Joseph S. Myers <jsm28@cam.ac.uk>
|
|
|
|
|
| |
games privileges from dm, so should revoke them on startup.
Patch submitteed in PR 8024 bye Joseph Myers <jsm28@cam.ac.uk>
|
|
|
|
|
| |
exceeded) when writing out saved games. Do so!
Patch supplied by Joseph Myers <jsm28@cam.ac.uk> in PR 8016
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
| |
from dm; (b) marks an unused parameter as such.
Submitted in PR 8014 by Joseph Myers <jsm28@cam.ac.uk>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
| |
Patch submitted in PR 7993 by Joseph Myers <jsm28@cam.ac.uk>
|
|
|
| |
Submitted in 7994 by Joseph Myers <jsm28@cam.ac.uk>
|
| |
|
|
|
|
| |
More battlestar(6) spelling and punctuation fixes for battlestar(6).
These ones come from OpenBSD.
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
name SEEK_SET for values which end up as the third argument of
fseek(), rather than a hard-coded 0.
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
| |
Make the score file MI
|
| |
|
| |
|
|
|
|
| |
an int.
Compatible with other versions of curses.
|
| |
|
|
|
|
|
|
|
|
| |
.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).
|
| |
|
| |
|
| |
|