Home | History | Annotate | Download | only in cfscores
History log of /src/games/canfield/cfscores/cfscores.c
RevisionDateAuthorComments
 1.22  22-Mar-2014  dholland Use ssize_t for read() results. Don't use int for lseek() results.
 1.21  03-Jan-2010  dholland branches: 1.21.6; 1.21.12;
Christos points out that usage should not use errx, but should use
getprogname.
 1.20  01-Jan-2010  dholland Split struct betinfo into its own header file so it can be shared
between canfield and cfscores, instead of copy-pasted.
 1.19  01-Jan-2010  dholland Use NULL instead of 0 for pointer tests. Remove an unnecessary cast.
 1.18  01-Jan-2010  dholland Send error messages to stderr. Use errx/warnx, not printf.
 1.17  01-Jan-2010  dholland Correct usage message.
 1.16  12-Aug-2009  dholland sprinkle static
 1.15  20-Jul-2008  lukem Remove the \n and tabs from the __COPYRIGHT() strings.
 1.14  28-Jan-2008  dholland branches: 1.14.6;
Work around gcc signedness warning: if you check for uid_t < 0, gcc warns
because it's unsigned, but I don't really want to rely on uid_t being
unsigned on every platform this code might propagate to.
 1.13  01-Jul-2005  jmc branches: 1.13.10;
KNF and WARNS=3
 1.12  27-Jan-2004  jsm Remove uses of __P.
 1.11  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.10  03-Jul-2000  matt More include additions for exit, abs, strcmp, etc.
 1.9  08-May-2000  mycroft Use setgid(), not setregid().
 1.8  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.7  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.6  29-Aug-1998  hubertf Use symbolic constants for seek(), open(). Fixed as per PR 6057 by
Joseph Myers <jsm@octomino.demon.co.uk>.
 1.5  11-Oct-1997  lukem use err/warn instead of perror
 1.4  10-Oct-1997  lukem WARNSify
 1.3  21-Mar-1995  cgd clean up import
 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.13.10.1  23-Mar-2008  matt sync with HEAD
 1.14.6.1  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.21.12.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.21.6.1  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")

RSS XML Feed