Commit Graph

118 Commits

Author SHA1 Message Date
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
Joshua Kwan e85350f8fd remove y.tab.* and lex.yy.*
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@87 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-05 09:19:58 +00:00
Joshua Kwan 926f3e4af4 works!
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@86 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-05 09:18:39 +00:00
Joshua Kwan 2966031319 fix number handling
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@85 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-05 02:58:48 +00:00
Joshua Kwan 8da9e3acdc Quick fix
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@84 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-05 01:57:25 +00:00
Joshua Kwan 4f6bec9c0a It kind of works now. However, we must beware the static buffers that we made
before. They might no longer be enough.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@83 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-05 01:55:08 +00:00
Joshua Kwan 6901a281a0 First try at the config file system. Still need to change usage of all
the macros, currently, this has no effect on dgamelaunch's functionality.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@82 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-05 01:25:38 +00:00
Brett Carrington 00cfa2545f Added copyright lines to COPYING, completely rewrote README. Feedback appreciated.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@81 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 23:33:10 +00:00
Joshua Kwan 4aed9485f4 reindentation
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@80 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 22:49:29 +00:00
Brett Carrington 1adf4dbb69 Stupid pointless TODO: in comment
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@79 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 20:16:59 +00:00
Jilles Tjoelker 118c4a51a6 Make dgl-create-chroot.conf file clearer in the comments.
Add example dgl-create-chroot.conf file.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@78 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 16:42:08 +00:00
Joshua Kwan 5a623c9d44 Fix problem with people entering initial blank password.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@77 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 12:16:05 +00:00
Joshua Kwan 58d70cd5e3 replace two big conditionals with isalnum(3) calls
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@76 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 12:07:38 +00:00
Joshua Kwan e55e715ee2 update Changelog
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@75 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 12:07:26 +00:00
Joshua Kwan ab14b92451 Ok, readd strlcat.c, use strlcat instead of strncat
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@74 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 07:35:14 +00:00
Joshua Kwan d8777057d6 knock one off
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@73 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 06:00:16 +00:00
Jilles Tjoelker 7ad4523dae Provide some feedback to the user that he has a stale game.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@72 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 02:56:09 +00:00
Joshua Kwan c76193877d fix some typos, add the crew to the copyright blurb
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@71 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 02:54:01 +00:00
Joshua Kwan b0ba0861ea ok, now it works
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@70 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 02:35:40 +00:00
Jilles Tjoelker acfec7933e Terminate if user chooses not to kill a hung game, and don't delete lockfile
in that case.
Move purge_stale_locks() call to before final endwin() in main().


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@69 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 02:31:00 +00:00