History log of /netbsd/games/rogue/score.c (Results 1 – 16 of 16)
Revision Date Author Comments
# 70862b7a 26-Aug-2011 dholland <dholland@NetBSD.org>

Use __dead and __printflike instead of __attribute__.


# 1e99780e 12-Aug-2009 dholland <dholland@NetBSD.org>

sprinkle static


# 130a8172 14-Jan-2008 dholland <dholland@NetBSD.org>

ANSIfy. Remove unnecessary casts. Clean up for -Wsign-compare. Make more
things file-static. Other minor tidyups, and fix a couple minor bugs found
along the way.


# 23c02a45 14-Jan-2008 dholland <dholland@NetBSD.org>

Whitespace/KNF nits.


# e94a5bc9 27-Dec-2007 dholland <dholland@NetBSD.org>

Comprehensive (or at least extensive) string handling cleanup for rogue.

This patch dates (mostly) back to 2002; the critical parts of it were
handled back then by security-officer. As far as I know

Comprehensive (or at least extensive) string handling cleanup for rogue.

This patch dates (mostly) back to 2002; the critical parts of it were
handled back then by security-officer. As far as I know, there's
nothing exploitable fixed herein.

A slightly earlier version of this patch was reviewed by Christian Biere
when I filed it as PR 34750.

show more ...


# e5aeb4ea 07-Aug-2003 agc <agc@NetBSD.org>

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22269, verified by myself.


# 10f663ea 07-Jul-2002 tron <tron@NetBSD.org>

Make "rogue" build with "WARNS=2". The necessary patches were supplied
by David A. Holland in PR bin/17498.


# e65cad56 09-Aug-2001 wiz <wiz@NetBSD.org>

Fix for FreeBSD/13278, from FreeBSD:
When a game ends that makes the top 10, the function insert_score in
score.c is called to make the new score file. But the case for KFIRE
(killed by fire) incorr

Fix for FreeBSD/13278, from FreeBSD:
When a game ends that makes the top 10, the function insert_score in
score.c is called to make the new score file. But the case for KFIRE
(killed by fire) incorrectly uses strcpy instead of strcat (all the
other cases use strcat). This puts the string in the wrong place and
corrupts the score file.

show more ...


# 5367f340 12-Sep-1999 jsm <jsm@NetBSD.org>

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 shoul

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.

show more ...


# 6d265b32 10-Nov-1998 hubertf <hubertf@NetBSD.org>

constify, per PR 6148


# 2736b511 12-Oct-1997 lukem <lukem@NetBSD.org>

WARNSify (not an insignificant task...)


# 7ee35daa 22-Apr-1995 cgd <cgd@NetBSD.org>

clean up import, NetBSD RCS Ids


# 02357d57 10-Nov-1993 cgd <cgd@NetBSD.org>

new curses update


# e6923339 23-Sep-1993 mycroft <mycroft@NetBSD.org>

Use `r+' rather than `a+' when opening score file.


# 8542364e 01-Aug-1993 mycroft <mycroft@NetBSD.org>

Add RCS identifiers.


# 61f28255 21-Mar-1993 cgd <cgd@NetBSD.org>

initial import of 386bsd-0.1 sources