summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Work around gcc signedness warning: if you check for uid_t < 0, gcc warnsdholland2008-01-281-6/+9
| | | | 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.
* Build with WARNS=4. Sort out the game's shadowing of its own variables,dholland2008-01-287-66/+68
| | | which fixes at least one bug.
* Build with WARNS=4. (All fixes are cosmetic, except that it's definitelydholland2008-01-282-28/+29
| | | | bad karma to shadow a local variable with another of the same name in a nested block...)
* Build with WARNS=4.dholland2008-01-282-7/+8
|
* This builds with WARNS=4; set it in the Makefile so it stays that way.dholland2008-01-281-1/+2
|
* Build with WARNS=4.dholland2008-01-282-20/+21
|
* I'm guessing that there should be no space between the hyphen andhe2008-01-251-1/+1
| | | the second word in "hand-lettered".
* Only pull in <sys/cdefs.h> on NetBSD, to fix build on Solaris 10.lukem2008-01-161-2/+5
| | | Tweak replacement definition of __dead.
* ANSIfy. Remove unnecessary casts. Clean up for -Wsign-compare. Make moredholland2008-01-1424-917/+634
| | | | things file-static. Other minor tidyups, and fix a couple minor bugs found along the way.
* Whitespace/KNF nits.dholland2008-01-1422-195/+198
|
* Fun with parts of speech: `stupid' here is an adjective, not a noun.dholland2008-01-031-1/+1
|
* Comprehensive (or at least extensive) string handling cleanup for rogue.dholland2007-12-2721-787/+953
| | | | | | | | 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.
* more __dead fallout: these two files are built for the native host, notdogcow2007-12-182-3/+14
| | | | for the target host - and thus do not necessarily have __dead defined in <sys/cdefs.h>.
* convert __attribute__s to applicable cdefs.h macrosperry2007-12-1571-250/+250
|
* include sys/cdefs.h so that __attribute__ can be fixed laterperry2007-12-153-3/+6
|
* A terrible kludge: don't compile/link malloc.c if arch=sun2. My apologiesdogcow2007-11-171-2/+6
| | | | to the legions of sun2 monop fans who will probably be unable to save/restore games.
* __attribute -> __attribute__ragge2007-09-161-3/+3
|
* Teach wtf(6) about pkgsrc's help facility:hubertf2007-08-062-8/+18
| | | | | | | % cd /usr/pkgsrc/audio/qsynth % wtf subst subst: ===> mk/subst.mk: # This Makefile fragment implements a general text replacement facility. ...
* Increased WARNS to 4, since it passes both gcc333 and gcc411 on i386.rillig2007-06-061-2/+2
|
* Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on thetls2007-05-281-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to various string and memory copy and set functions (as well as a few system calls and other miscellany) where known at function entry. RedHat has evidently built all "core system packages" with this option for some time. This option should be used at the top of Makefiles (or Makefile.inc where this is used for subdirectories) but after any setting of LIB. This is only useful for userland code, and cannot be used in libc or in any code which includes the libc internals, because it overrides certain libc functions with macros. Some effort has been made to make USE_FORT=yes work correctly for a full-system build by having the bsd.sys.mk logic disable the feature where it should not be used (libc, libssp iteself, the kernel) but no attempt has been made to build the entire system with USE_FORT and doing so will doubtless expose numerous bugs and misfeatures. Adjust the system build so that all programs and libraries that are setuid, directly handle network data (including serial comm data), perform authentication, or appear likely to have (or have a history of having) data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default, with the exception of libc, which cannot use USE_FORT and thus uses only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no per-directory or in a system build will disable if desired.
* Per PR 36185, OKed by martin@mouse2007-04-225-37/+52
|
* Xref shuffle(1) from random(6), and vice versahubertf2007-03-201-2/+3
|
* NetBSD JIHBEDad2007-02-261-0/+2
|
* NetBSD: Dead on Targetad2007-02-261-0/+3
| | | -- Gimpy
* - Don't call basename $0 at many places. Use variable $PROGNAMEhubertf2007-01-241-7/+14
| | | | | | | | - Better check when neither $ACRONYMDB is define nor files in /usr/share/misc/ are found - Replace cat | fgrep to using fgrep only - Replace sort | uniq to using sort -u By Slava Semushin <slava.semushin@gmail.com> in private email.
* Update my previous commit to better match the original code, includingchuck2007-01-171-5/+8
| | | | | | | | | | | the check for 'bs'... my previous commit should have included the following text: fixes problem introduced in 1.13 where the setting of "BC" (backspace char) was left to libterm rather than being done by hack itself. the problem with this was that hack was directly setting BC to \b if there was no "bc" in the termcap entry, but libterm does not do this. this resulted in the xputs(BC) calls in nocmov() and backsp() incorrectly doing nothing, thus messing up the display. added new var BC_BS to provide the old behavior for nocmov() and backsp().
* mrg's changes in 1.13 broke hack's display code.chuck2007-01-171-5/+8
|
* Replve duplicate #includeshubertf2007-01-172-6/+4
| | | From Slava Semushin <slava.semushin@gmail.com>, via private mail
* - ANSIfyhubertf2007-01-121-16/+11
| | | | | | | - Use return instead of exit() in main() - Use EXIT_{SUCCESS,FAILURE} constants instead of 0/1 No functional changes. Patch submitted in private mail by Slava Semushin <slava.semushin@gmail.com>
* Fix some typos in ENIAC quote. From Zafer Aydogan and myself.wiz2006-12-251-3/+3
|
* Spell "tomorrow" correctly. From Zafer Aydogan.wiz2006-12-251-1/+1
|
* Bump date for previous. Use mdoc macros.wiz2006-12-231-3/+3
|
* Add example of using -w.reed2006-12-141-1/+4
|
* s/existance/existence/, from Zafer.wiz2006-11-242-3/+3
|
* s/independant/independent/, from Zafer.wiz2006-11-241-2/+2
|
* s/exceded/exceeded/, from Zafer.wiz2006-11-241-3/+3
|
* fix spelling of accommodate; from Zapher.christos2006-11-241-3/+3
|
* fix spelling of accidentally; from Zapherchristos2006-11-241-2/+2
|
* Check that -w width is not above maximum. (It already checks for zero orreed2006-11-221-4/+4
| | | | | | negative.) Using width above DWIDTH may cause overflow as noted by Gruzicki Wlodek on bugtraq. While here replace one use of 132 with DWIDTH.
* don't discard const. GCC 4.1-20061021 doesn't like that...mrg2006-10-221-3/+3
|
* Typo, from David A. Holland on #NetBSD-code, thanks!elad2006-10-082-2/+1
|
* Input validation, from David A. Holland on #NetBSD-codeelad2006-10-071-6/+18
|
* PR/18906: roskens at elfin dot net: misc. select() to poll() updates.elad2006-10-071-5/+5
| | | Adapted to -current by myself, thanks for the patch!
* PR# 4305: [dM] boggle uses very incomplete wordlist.jmcneill2006-09-241-2/+7
|
* PR/34175: Zafer Aydogan: touch the window to cause a refresh after helpchristos2006-08-092-18/+20
| | | Also use CTRL instead of \xxx
* Attribute ``A language that doesn't affect the way you think abouthubertf2006-06-241-0/+1
| | | | programming is not worth knowing.'' to Alan Perlis, per Diomidis Spinellis' blog at http://www.spinellis.gr/blog/20060424/
* Fix typo or mispelling.reed2006-06-171-2/+2
|
* Increase username length to match modern systems, and create #defines for ajnemeth2006-06-071-2/+4
| | | couple of lengths.
* Actually accept "?" argument as documented in the manpage.jnemeth2006-06-071-16/+14
| | | | Don't attempt to ignore an untrappable signal. Fix 6 possible buffer overflows.
* Don't follow symlinks on systems that have O_NOFOLLOW.jnemeth2006-06-071-5/+9
| | | | Don't bother looping with lockf() since first iteration would return. Prevent two buffer overflows.