Jilles Tjoelker
0817cc32e8
* Make sure curses will redraw the watch list after 'm' has been used
...
* ^L and ^R will redraw the entire screen in the watch list
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@334 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-08-23 12:59:33 +00:00
Joshua Kwan
8f78e6128c
use libgen.h
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@328 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-07-03 23:34:13 +00:00
Joshua Kwan
03718b936e
setproctitle for teh lunix
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@327 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-07-03 19:19:28 +00:00
Jilles Tjoelker
dc7b46bbfe
Use setproctitle(3), if available, to hide autologin password and show logged
...
in user and whether they are playing.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@325 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-06-28 19:41:06 +00:00
Joshua Kwan
6fecd2b69d
hide all extra arguments, because they're probably -p
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@321 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-06-22 16:36:09 +00:00
Joshua Kwan
aa1a46543b
fix everything!
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@309 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-06-18 21:16:50 +00:00
Joshua Kwan
eee0d887dc
bum da bum
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@306 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-06-18 18:18:13 +00:00
Joshua Kwan
9aee4e563f
various fixes
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@304 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-06-18 18:16:22 +00:00
Joshua Kwan
cda1f84bcc
stuff
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@303 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-06-18 18:04:36 +00:00
Joshua Kwan
8e89cf0e65
autoconfize
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@301 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-06-18 17:57:29 +00:00
Joshua Kwan
cd3f89cbc9
assert
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@297 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-06-14 18:06:25 +00:00
Joshua Kwan
e07195ad82
wtf?
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@296 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-06-14 08:43:51 +00:00
Joshua Kwan
f6b9135c34
pretty serious bugfix
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@292 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-06-13 03:05:47 +00:00
Joshua Kwan
1a36469589
add USER-authentication support
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@291 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-06-12 00:11:18 +00:00
Joshua Kwan
f293d97c68
NULLify me if login fails
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@289 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-04-22 15:04:15 +00:00
Jilles Tjoelker
545e5e8721
Merge J. Ali Harlow's patch for NhExt support, with a few changes.
...
Tested a little whether nethack still works.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@288 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-04-21 16:22:55 +00:00
Joshua Kwan
4d45d4d263
move junk around, genericize things
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@287 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-04-03 19:27:42 +00:00
Jilles Tjoelker
61c7349a86
Change clear() to erase() for less flicker when refreshing watch list.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@286 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-03-21 16:53:07 +00:00
Jilles Tjoelker
eeb6f9edaa
Add possibility to backup the savefile before starting nethack.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@282 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-03-17 14:04:31 +00:00
Jilles Tjoelker
54e3b2a55f
Reset offset to a lower value if not enough games exist anymore.
...
Avoids things like "(15-8 of 8)".
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@275 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-03-12 16:24:18 +00:00
Jilles Tjoelker
41fd7d3b21
Fix brettcar typo
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@273 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-03-10 12:27:34 +00:00
Brett Carrington
9eca87a1ed
PLEASE LOOK AT THE DGL-CREATE-CHROOT SCRIPT
...
before you run it again. Same with the Makefile.
Most important change is in dgamelaunch.c
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@271 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-03-10 00:18:30 +00:00
Jilles Tjoelker
d71b47be7e
Stricter check on entered email addresses; the same check is now used for new
...
accounts as well as changes in existing accounts.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@268 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-03-06 20:34:27 +00:00
Jilles Tjoelker
9beae9e40d
Selecting a game to watch with an uppercase letter attempts to change the
...
window size to the game's via the \033[8;<r>;<c>t sequence. Block SIGWINCH
before sending this sequence and unblock it after calling initcurses() again.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@267 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-03-04 14:38:02 +00:00
Jilles Tjoelker
e33b7fabd6
Pass window size to watchers via inprogress file; show it on the list.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@265 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-03-04 13:58:03 +00:00
Jilles Tjoelker
2f258f13c7
Use client-supplied window size again (Pasi Kallinen).
...
Try to detect broken clients and force them to 80x24.
This backs out the functional change in rev 247.
Passing through window size to watchers in a later commit.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@264 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-03-04 13:30:12 +00:00
Jilles Tjoelker
b3fb5538e8
Show total number of games in progress below the list, useful if there are
...
more than fits on the screen.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@263 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-03-01 21:17:05 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Joshua Kwan
f20200f40c
check for . and ..
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@68 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 02:28:57 +00:00
Joshua Kwan
e9a719ea90
oops, big bug
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@67 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 02:20:54 +00:00
Joshua Kwan
71f367b1b4
Reindent, and add some error handling for kill
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@66 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 02:19:12 +00:00
Joshua Kwan
0daf7cdb3b
Move gen_inprogress_lock() call to ttyrec.c, with the pid of nethack, and
...
purge_stale_locks() to remove all stale lockfiles.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@65 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 02:03:26 +00:00
Brett Carrington
45afd54ca0
graceful_exit, does nothing but please deprecate exit().
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@63 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 01:45:21 +00:00
Joshua Kwan
873b412c8f
update Changelog, screw libiberty
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@62 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 01:14:36 +00:00
Joshua Kwan
ab8fc6018c
use strlcpy
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@61 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 01:05:22 +00:00
Joshua Kwan
4a5f12d4fe
always pass F_SETLK to fcntl even when unlocking
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@60 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 01:00:18 +00:00
Joshua Kwan
2a2f13d3b5
Add strlcpy.c back and fix some locking issues (replace all with fcntl)
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@59 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 00:59:48 +00:00
Joshua Kwan
22afce0c28
Revamp the simplemail support
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@58 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-04 00:21:39 +00:00
Brett Carrington
ede1d2cd91
See comments in file (use diff if you can't find them)
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@56 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-03 21:57:22 +00:00
Joshua Kwan
d6c195c11e
> and < not d and u
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@52 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-03 04:01:42 +00:00
Joshua Kwan
f0770947e7
typo
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@51 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-03 03:54:16 +00:00
Joshua Kwan
d9c2a09b9f
fix some errors pointed out by jilles and paxed
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@50 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-03 03:51:29 +00:00
Joshua Kwan
f49aa0e0ef
use an ARRAY_SIZE macro if available, if not, #define it
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@49 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-03 02:10:35 +00:00
Joshua Kwan
f35d803c74
fix linux now :)
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@44 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-02 21:00:54 +00:00
Joshua Kwan
3a2b0a7b0d
works
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@43 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-02 20:47:53 +00:00
Joshua Kwan
ad799b2374
use setgroups()
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@42 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-02 20:39:02 +00:00
Joshua Kwan
6f76353da3
First round of BSD fixes. Not done yet.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@38 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-02 20:31:30 +00:00
Joshua Kwan
d829ac26e2
caught_sighup has no real purpose, get rid of it
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@36 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-02 06:15:30 +00:00
Joshua Kwan
11282a35d6
add function prototypes, fix up arguments of catch_sighup
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@35 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-02 06:14:34 +00:00
Joshua Kwan
5af442ca9d
offload to populate_games function some junk in inprogressmenu. allow infinite
...
ongoing games.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@34 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-02 04:35:46 +00:00
Brett Carrington
bbfc3bc507
Added `tags' to makefile exclusions. Also, everything is indented now
...
per `make dist'.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@30 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-01 19:57:58 +00:00
Joshua Kwan
f39e3e4e38
use strchr instead of strstr where appropriate. oops.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@27 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-01-01 02:06:19 +00:00
Brett Carrington
3e9ec53de4
I renamed it to 'bannerfile', 'banfile' is ambigous (perhaps for a future
...
banner users file?) Also made LOC_BANNER in the header and updated the
chroot script to include the banner and default-rc files.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@25 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2003-12-31 20:21:00 +00:00
Joshua Kwan
8b0af2e9aa
I can't stand it anymore, reindenting with 2 spaces,
...
also add a dgl-banner file that has a $VERSION token that one can put
anywhere, replace VER[1-7] and VERLINES
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@24 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2003-12-31 19:47:49 +00:00
Brett Carrington
82acdecfa1
User is now prompted for their password twice at registration.
...
Turned echo off during such prompting...
And 'tags' file is in .cvsignore (so I can run ctags *.[ch])
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@21 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2003-12-31 18:14:07 +00:00
Joshua Kwan
8f8b2eadbf
stuff
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@20 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2003-12-31 07:18:06 +00:00
Joshua Kwan
ade29a3309
tweaked for some Debianisms that should be default anyway
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@17 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2003-12-31 02:39:10 +00:00
Joshua Kwan
85c26142e3
oops
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@16 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2003-12-31 02:04:32 +00:00
Joshua Kwan
701a98c8ed
update the message
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@15 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2003-12-31 02:03:05 +00:00
Joshua Kwan
255f93b19d
rip out the redundant menu entry now that we can mail in-game
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@14 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2003-12-31 02:02:25 +00:00
Joshua Kwan
363b57f1a2
reindent files, add some glue to allow mailing from within the ttyplay session
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@13 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2003-12-31 01:58:56 +00:00
Joshua Kwan
8c5c5aa5f0
Fix a wrong increment.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@11 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2003-12-31 00:50:58 +00:00
Joshua Kwan
c8d5020711
Honor case in login name. Also fix ttyrec path, probably lost in
...
strcpy->snprintf transition.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@7 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2003-12-30 23:33:58 +00:00
Joshua Kwan
f85524cf0f
some more memory management stuff
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@5 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2003-12-30 22:41:47 +00:00
Joshua Kwan
f626f44b02
initial commit of new dgamelaunch to CVS
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@1 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2003-12-30 21:30:32 +00:00