]> skyeroc.xyz Git - dgamelaunch/commitdiff
Don't do other NetHack-specific stuff either in dgl itself...
authorPasi Kallinen <paxed@alt.org>
Tue, 1 Jan 2008 17:59:53 +0000 (17:59 +0000)
committerPasi Kallinen <paxed@alt.org>
Tue, 1 Jan 2008 17:59:53 +0000 (17:59 +0000)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@394 db0b04b0-f4d1-0310-9a6d-de3e77497b0e

dgamelaunch.c
examples/dgamelaunch.conf

index cde3e524cd76ae963280d1094cd9c38db0496465..a6ce475a5f7d0be0c754356ebc1177662f40cb1f 100644 (file)
@@ -1876,7 +1876,7 @@ int
 main (int argc, char** argv)
 {
   /* for chroot and program execution */
-  char atrcfilename[81], *spool, *p, *auth = NULL;
+    char atrcfilename[81], /**spool,*/ *p, *auth = NULL;
   unsigned int len;
   int c, i;
   int nhext = 0, nhauth = 0;
@@ -2082,18 +2082,22 @@ main (int argc, char** argv)
   }
   */
 
+  /*
   len = strlen(myconfig[userchoice]->spool) + strlen (me->username) + 1;
   spool = malloc (len + 1);
   snprintf (spool, len + 1, "%s/%s", myconfig[userchoice]->spool, me->username);
 
   mysetenv ("MAIL", spool, 1);
   mysetenv ("SIMPLEMAIL", "1", 1);
+  */
 
   /* don't let the mail file grow */
+  /*
   if (access (spool, F_OK) == 0)
     unlink (spool);
 
   free (spool);
+  */
 
   /* fix the variables in the arguments */
   for (i = 0; i < myconfig[userchoice]->num_args; i++) {
index d9e7dcf3d173b3d712f96be1c3fdc6a412344013..f4e91c4f32db860828a100608245d555de93b53d 100644 (file)
@@ -140,13 +140,18 @@ rc_template = "/dgl-default-rcfile"
 # %r == dglroot
 # %n == user name
 rc_fmt = "%rrcfiles/%n.nethackrc"
+
 inprogressdir = "inprogress-nethack/"
 
 # back up savefile
 commands = cp "/var/games/nethack/save/%u%n.gz" "/var/games/nethack/save/%u%n.gz.bak",
 # set NETHACKOPTIONS to point to the rcfile
-        setenv "NETHACKOPTIONS" "@%rrcfiles/%n.nethackrc"
-
+        setenv "NETHACKOPTIONS" "@%rrcfiles/%n.nethackrc",
+# set up nethack mail stuff
+        setenv "MAIL" "/var/mail/%n",
+        setenv "SIMPLEMAIL" "1",
+# don't let the mail file grow
+        unlink "/var/mail/%n"
 }
 
 #