Commit Graph

137 Commits

Author SHA1 Message Date
Joshua Kwan 8b9c796b10 Add ability to change location of passwd and lockfile.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@137 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-21 01:57:44 +00:00
Joshua Kwan 7c8eebf836 warning message when config file = ENOENT
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@136 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-21 01:49:40 +00:00
Joshua Kwan dc9485bba1 make an error message clearer
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@135 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-21 01:47:02 +00:00
Joshua Kwan be57b91ba1 Additional anti-root uid security fixes
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@134 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-21 01:37:16 +00:00
Jilles Tjoelker 9a1b899cba NOSTREAMS must not be defined for Solaris.
The STREAMS manipulations are required in order to have a proper terminal with
termios manipulation.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@133 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-19 18:42:46 +00:00
Joshua Kwan cb93395b99 be smart about USE_OPENPTY
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@132 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-19 18:14:08 +00:00
Joshua Kwan 14673b8bae again
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@131 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-19 17:01:42 +00:00
Joshua Kwan ce0d5f7f3d would this fix it permanently
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@130 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-19 16:59:26 +00:00
Joshua Kwan 0f9d024d26 ncurses.h -> curses.h
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@129 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-19 16:56:03 +00:00
Jilles Tjoelker 2e89c7c3be Own version of getnstr() that always recognizes ^H and ^?; now always noecho(); mygetnstr() echoes if necessary.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@128 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-19 11:58:31 +00:00
Jilles Tjoelker e61edfe9ee Some more information on running it on Solaris.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@127 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-17 01:05:00 +00:00
Joshua Kwan 2a53f0970f ports
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@126 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-16 22:56:59 +00:00
Joshua Kwan 72aa15da09 flex warnings
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@125 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-16 22:55:41 +00:00
Jilles Tjoelker d80186d75f Copying terminal data files (as opposed to directories) works again now.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@124 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-16 21:44:36 +00:00
Jilles Tjoelker 1a081cc170 Solaris compatibility.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@123 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-16 16:36:33 +00:00
Joshua Kwan cc4181039e resolve lack of yywrap()
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@122 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-16 06:10:21 +00:00
Joshua Kwan de1e3fea9c solaris
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@121 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-16 02:32:33 +00:00
Joshua Kwan 61efafdd49 don't use on BSD and Linux, setenv(3) is BSD 4.3
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@120 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-16 02:02:40 +00:00
Joshua Kwan ff73c6b2cb mysetenv() for portability
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@119 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-16 02:00:47 +00:00
Joshua Kwan 2063de2fdc init a struct flock
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@118 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-16 01:37:33 +00:00
Joshua Kwan 1059fae93b solaris portability fixes
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@117 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-12 17:32:47 +00:00
Joshua Kwan 9a272b46c6 union wait is deprecated on any unix worth shit. don't use it. ever.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@116 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-12 17:24:14 +00:00
Jilles Tjoelker 1540973c6e Copy /etc/localtime (so gremlins will steal intrinsics at appropriate times).
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@115 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-07 14:53:08 +00:00
Jilles Tjoelker ce0eaea25c Some fixes and changes, partly relating to FreeBSD.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@114 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-07 13:37:30 +00:00
Jilles Tjoelker 9686e206c0 Don't call getpwuid(3)/getgrgid(3) on uids/gids in the config file. The uid/gid
doesn't need to be in /etc/passwd or /etc/group anyway, and this reduces
storage of sensitive information in dgamelaunch's memory space.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@113 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-07 12:00:41 +00:00
Joshua Kwan 20a824b932 fix a buffer overflow
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@112 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-06 19:04:07 +00:00
Jilles Tjoelker 64467ae41d SIGWINCH problems seem to be fixed now.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@111 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-06 15:51:51 +00:00
Jilles Tjoelker c2be1a8882 Reset SIGWINCH to default before starting game to prevent that window resizes
during play cause disconnects.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@110 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-06 14:27:56 +00:00
Jilles Tjoelker 67ebb9ea09 Make sure we don't forget the SIGWINCH problem.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@109 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-06 14:01:08 +00:00
Jilles Tjoelker 544a1b925b Some buglets.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@108 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-06 13:43:11 +00:00
Jilles Tjoelker 7fab8e128d Some fixes to simplemail. It appears to work for me now.
To keep it simple, 'm' quits out of watching.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@107 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-06 13:35:38 +00:00
Jilles Tjoelker c250d038e9 Add code to test simplemail.
(nitpick) #include lines style(9) compliant again.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@106 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-06 13:33:36 +00:00
Jilles Tjoelker 488c628565 Same snprintf size bug again.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@105 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-06 13:16:31 +00:00
Jilles Tjoelker 974f567f04 snprintf() size argument was 1 too small, so MAIL variable always missed
last char.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@104 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-06 13:11:07 +00:00
Joshua Kwan 7e84a8baae wrap at 80, add some helpful install tips
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@103 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-06 06:53:02 +00:00
Joshua Kwan c8739c386b fix case where argv[1] == ENOENT
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@102 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-06 05:03:30 +00:00
Joshua Kwan d80b867622 stop using indent for a while, breaks small checkins
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@101 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-06 05:03:19 +00:00
Joshua Kwan 0b590733ff Here's a better fix
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@100 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-06 02:08:53 +00:00
Joshua Kwan 52e8cb7de8 fix truncation of any banner stuff after appending $VERSION
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@99 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-06 01:57:49 +00:00
Joshua Kwan f2a177ce95 version 1.3.10.1 doesn't allude to how much new crap is in this release.
call this 1.4. seriously


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@98 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-06 01:38:11 +00:00
Joshua Kwan e08b7668ad y.tab.c, lex.yy.c instead of y.tab.o lex.yy.o
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@97 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-05 23:27:18 +00:00
Joshua Kwan 651b85b4ee add io.c to the 4-BSD stuff
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@96 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-05 23:26:16 +00:00
Joshua Kwan dcf684328c #include <string.h>
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@95 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-05 17:44:30 +00:00
Joshua Kwan ecc8f9b897 this should really be strncmp
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@94 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-05 17:37:21 +00:00
Joshua Kwan 527b7ace92 scratch one off
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@93 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-05 17:31:01 +00:00
Joshua Kwan 9419e79454 some fixes
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@92 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-05 17:27:49 +00:00
Jilles Tjoelker 6820e56684 Replace use of signal() by sigaction(). signal() is not very consistent.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@91 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-05 16:10:30 +00:00
Jilles Tjoelker 9939fa7365 Ignore nethackstub binary and ktrace.out (output of ktrace syscall tracer).
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@90 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-05 14:03:38 +00:00
Jilles Tjoelker 119b0c3058 Simple stub to test SIGHUP etc. stuff in an easier way.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@89 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-05 14:01:03 +00:00
Jilles Tjoelker 39c8fcbf1f Replace dgamelaunch with $(NAME) in a few places.
Add dependency for y.tab.o so it will be built automatically.
Replace flex command by lex, bison -y by yacc.
Change the install target a bit (although I don't use it myself).


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@88 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-05 13:16:23 +00:00