Home | History | Annotate | only in /src/games/fish
History log of /src/games/fish
RevisionDateAuthorComments
 1.10 13-Feb-1999  lukem convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
 1.9 29-Sep-1998  lukem don't install in /usr/share if NOSHARE is defined
 1.8 24-Mar-1997  christos - Makefile cleanups
 1.7 18-Oct-1996  thorpej Use ${INSTALL}.
 1.6 23-Mar-1995  cgd merge with Lite, new RCS id conventions, etc.
 1.5 12-Jan-1995  jtc Use ${BINOWN} and ${BINGRP}.
 1.4 22-Dec-1994  cgd specify man pages the new way.
 1.3 15-Dec-1994  jtc Use ${DESTDIR} when installing fish.instr (PR #641).
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 21-Mar-1995  cgd from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.8 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22269, verified by myself.
 1.7 02-Apr-2001  wiz Whitespace and/or punctuation fixes.
 1.6 17-Aug-1999  enami In name section, use .Dq macro rather than writing double quote directly.
 1.5 10-Oct-1997  lukem WARNSify
 1.4 23-Mar-1995  cgd merge with Lite, new RCS id conventions, etc.
 1.3 05-Aug-1993  jtc Update to use new -mandoc macros.
 1.2 01-Aug-1993  mycroft Add RCS indentifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 21-Mar-1995  cgd from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.28 18-Nov-2024  hgutch fish: allow player to only ask for cards they have on their hand

This fixes PR/58828 .
 1.27 25-Jul-2021  dholland branches: 1.27.4;
Flush input to EOL correctly in games/fish.

PR 54885 from Mouse, with a somewhat different patch.
 1.26 02-May-2021  rillig fish: remove trailing whitespace
 1.25 02-May-2021  rillig fish: use arc4random_uniform for drawing random numbers

Thanks nia@ for the hint.
 1.24 01-May-2021  rillig fish: remove modulo bias from random number generation

It probably doesn't matter in practice, but omitting this piece of code
always looks like an oversight.
 1.23 05-Mar-2018  eadler [fish] don't allow users to request cards they have made books for

While here, don't re-renter pro mode

PR bin/52973

ok maya@ dh@
 1.22 01-Sep-2011  plunky reinstate NULL cast by request, where the NULL was being passed as a vararg
 1.21 31-Aug-2011  plunky NULL does not need a cast
 1.20 12-Aug-2009  dholland sprinkle static
 1.19 20-Jul-2008  lukem Remove the \n and tabs from the __COPYRIGHT() strings.
 1.18 15-Dec-2007  perry branches: 1.18.6;
convert __attribute__s to applicable cdefs.h macros
 1.17 02-Jul-2005  jmc branches: 1.17.10;
KNF conversion
 1.16 15-Feb-2005  jsm Cast last argument of execl to (char *).

Reviewed by <hubertf>.
 1.15 27-Jan-2004  jsm Remove uses of __P.
 1.14 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22269, verified by myself.
 1.13 08-May-2000  mycroft Use setgid(), not setregid().
 1.12 28-Mar-2000  tron Use an equal probability single draw algorithm to get card from deck.
Patch supplied by John Darrow in PR bin/9651.
 1.11 22-Sep-1999  jsm Use the function usage().
 1.10 12-Sep-1999  jsm Security improvements for games (largely from or inspired by OpenBSD).

Games which run setgid from dm, but don't need to, should drop their
privileges at startup.

Games which have a scorefile should open it at startup, then drop all
privileges leaving just the open writable file descriptor. If the
game can invoke subprocesses, this should be made close-on-exec.

Games with scorefiles should make sure they do not get a file
descriptor < 3. (Otherwise, they could get confused and corrupt the
scorefile when using stdin, stdout or stderr.)

Some old setuid revokes from the days of setuid games change into gid
revokes.
 1.9 08-Sep-1999  jsm Add use of `const' where appropriate to the games.

This merges in all such remaining changes from the Linux port of the
NetBSD games, except in hunt (where substantial changes from OpenBSD
need to be looked at).

Some such changes were previously covered in PRs bin/6041, bin/6146,
bin/6148, bin/6150, bin/6151, bin/6580, bin/6660, bin/7993, bin/7994,
bin/8039, bin/8057 and bin/8093.
 1.8 14-Jul-1999  hubertf This patch makes fish(6) honour PAGER for viewing the instructions.
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>
 1.7 24-Apr-1999  kristerw Buffer overflow fix (from OpenBSD)
 1.6 13-Sep-1998  hubertf mark non-returning functions (PR#6144 by Joseph Myers <jsm28@cam.ac.uk>)
 1.5 16-Nov-1997  christos PR/4489: Mika Nystroem: Security hole exec'ing more in fish instructions.
 1.4 10-Oct-1997  lukem branches: 1.4.2;
WARNSify
 1.3 23-Mar-1995  cgd merge with Lite, new RCS id conventions, etc.
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 21-Mar-1995  cgd from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.4.2.1 17-Nov-1997  thorpej Pull up from trunk (christos).
 1.17.10.1 09-Jan-2008  matt sync with HEAD
 1.18.6.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.27.4.1 02-Aug-2025  perseant Sync with HEAD
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.4 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22269, verified by myself.
 1.3 23-Mar-1995  cgd merge with Lite, new RCS id conventions, etc.
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 21-Mar-1995  cgd from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources

RSS XML Feed