Commit Graph

114 Commits

Author SHA1 Message Date
Jilles Tjoelker 742afceadc Don't fail if client-supplied window size seems incorrect.
Add forgotten change for 1.4.2 in Changelog.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@259 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-24 15:46:01 +00:00
Jilles Tjoelker 2316fddf78 * Message length is at most 80, not 79 characters
* Improve dgl-wall's handling of bad arguments


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@254 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-22 22:40:33 +00:00
Joshua Kwan 56e5619777 Added dgl-wall to cvsignore, fixed build
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@249 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-22 09:01:03 +00:00
Jilles Tjoelker 89181d3dcd Abort if window size too small
Force window size to 80x24 (if the watched game's window size is larger than
the watcher's, chaos results)


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@247 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-20 17:57:29 +00:00
Jilles Tjoelker 44c608a12f Make sure to watch right game on the second and further pages
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@246 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-19 21:10:23 +00:00
Joshua Kwan 8bfdcb26fe don't always call write_canned_rcfile()
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@245 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-17 18:33:13 +00:00
Joshua Kwan cb40c5ffc0 DEFCONFIG holds path to config file, hardcoded, edit Makefile for this
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@243 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-17 02:44:33 +00:00
Joshua Kwan 686c76bbea zero 'me' after allocating it
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@241 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-17 01:00:22 +00:00
Jilles Tjoelker f7f3ebcae7 Set me to NULL if new user doesn't enter a username.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@240 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-17 00:58:21 +00:00
Jilles Tjoelker 8769ab9e15 Block signals during writefile().
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@239 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-17 00:53:28 +00:00
Jilles Tjoelker ee48608bcf Users with name like "test10" picked up inprogress files for "test1" as their
own.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@236 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-15 23:19:39 +00:00
Joshua Kwan 6e01003303 Maybe this'll do it.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@234 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-13 23:15:03 +00:00
Jilles Tjoelker d9d9e9f1c9 Remove bogus and too early unlock
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@232 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-13 22:59:28 +00:00
Joshua Kwan 363ceebf62 Jilles-pedantry
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@230 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-13 22:36:17 +00:00
Joshua Kwan 0676d450d0 CRITICAL: Do NOT call writefile() for a new user
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@229 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-13 22:30:59 +00:00
Joshua Kwan e541cf9a6f Any key refreshes, not just 'r'
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@227 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-07 08:42:26 +00:00
Jilles Tjoelker 92bfc49788 while (true) -> for (;;)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@225 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-05 19:50:58 +00:00
Joshua Kwan 7f0a010f23 at Pasi's request add option to change email address.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@224 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-05 19:38:17 +00:00
Joshua Kwan c0afaba270 - remove third argument from ttyplay_main
- kludge to not run strip_gfx when stripped == NO_GRAPHICS
- other random fixes


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@221 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-03 02:55:24 +00:00
Joshua Kwan 39100e0631 a few security fixes
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@219 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-02 23:28:17 +00:00
Joshua Kwan f0efefec2f SECURITY: accept only argument following -f for dgamelaunch.conf path
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@218 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-02 22:57:54 +00:00
Joshua Kwan 56fd9165d0 Let's use getopt..
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@210 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-01 20:53:08 +00:00
Joshua Kwan 38d2f7576b Support unhandled options.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@209 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-01 20:46:08 +00:00
Joshua Kwan 474bcfb095 error handling for when yyerror happens and we bounce back into create_config
with a NULL myconfig


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@206 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-01 09:25:22 +00:00
Joshua Kwan b34e8a4af3 Kludge to detect 'maxusers = 0' and handle f_num > myconfig->max more smoothly
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@205 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-01 08:20:28 +00:00
Joshua Kwan 1c777df980 Pedantry, c/o paxed
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@203 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-01 08:10:00 +00:00
Joshua Kwan 9072f9c8db make sure precedence doens't bite ARRAY_SIZE in the ass
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@202 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-31 08:41:00 +00:00
Joshua Kwan 99e9e4997b Config file blues.. add silent option on command line
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@198 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-31 06:23:02 +00:00
Joshua Kwan 8bdb57a194 Fix a little fallout, also notify mailer of failed login...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@196 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-31 03:10:03 +00:00
Joshua Kwan 710df809e0 Allow user to login on the spot.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@195 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-31 03:04:58 +00:00
Joshua Kwan 846f59e3f6 Pull C99 initializers that don't work with Sun compiler :(
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@191 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-30 17:32:12 +00:00
Joshua Kwan fb02d3614b C99 initializers everywhere!
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@190 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-30 16:47:40 +00:00
Joshua Kwan 6f11c9053a Regenerate dependencies, function prototypes, remove useless includes, globals,
and make code more readable. Move externs into a header file, just tidying up.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@186 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-30 02:49:29 +00:00
Joshua Kwan 282721fc0b add a clear() that might be needed in case a process isn't HUPable and we
ask the user if he wants to SIGTERM it


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@183 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-30 00:56:46 +00:00
Joshua Kwan aaaa35c525 Fix some stuff related to HUP'ping processes (not completely fixed yet)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@181 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-28 16:31:37 +00:00
Joshua Kwan 6e6be8f40c re-mention virus and last_char_is.c in COPYING
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@179 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-27 17:31:26 +00:00
Joshua Kwan 2c83144f25 Fix bug in populate_games where only first game would be seen (!)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@178 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-27 09:05:39 +00:00
Joshua Kwan 1547d8cbdc bail out if you specified a config file, and it's ENOENT - less confusing
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@176 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-26 16:50:13 +00:00
Joshua Kwan a095001e0a remove deep_copy function, rename initncurses to initcurses
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@169 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-26 08:29:04 +00:00
Joshua Kwan 0957e52c6c land final virus+ee support
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@163 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-25 22:44:34 +00:00
Joshua Kwan c4932ed44b Cleanups - globals, extraneous #defines, #include order, etc.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@161 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-25 22:34:35 +00:00
Joshua Kwan e218bf1055 fix canned rcfile path
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@157 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-23 18:33:35 +00:00
Joshua Kwan 849a8c5012 Throw out virus in favor of ee, which is much more newbie-friendly and somewhat
less iffy than virus.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@150 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-23 18:14:48 +00:00
Joshua Kwan 8ea6b70149 rearrange preprocessor stuff
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@148 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-23 16:40:51 +00:00
Joshua Kwan 410a4f8d96 - no need for strdup, we never free myconfig
- use defconfig for default passwd/lockfile


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@145 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-21 16:47:30 +00:00
Jilles Tjoelker 390c2666cd Give a message when the max number of users has been reached, avoiding the
creation of a too large user list.
If the list was not too large when selecting the 'r' option, but is after all
data has been entered, bail out without message and corrupting the
terminal settings (oops).


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@142 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-21 16:31:40 +00:00
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 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
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