diff arogue7/mach_dep.h @ 143:7faf4568c295

Advanced Rogue family: overhaul privilege handling. Advanced Rogue 5 and 7, and XRogue, now open the scorefile and logfile at startup and then drop any set[ug]id privileges if the savedir is not being used.
author John "Elwin" Edwards
date Sat, 16 May 2015 13:39:26 -0400
parents 8ae3ffd6c6e7
children 3e1146666ae5
line wrap: on
line diff
--- a/arogue7/mach_dep.h	Tue May 12 21:39:39 2015 -0400
+++ b/arogue7/mach_dep.h	Sat May 16 13:39:26 2015 -0400
@@ -44,6 +44,15 @@
 #define SCOREFILE	"arogue7.scr"
 #endif
 
+#ifndef LOGFILE
+#define LOGFILE "arogue7.log"
+#endif
+
+#ifndef SAVEDIR
+#define SAVEDIR "."
+#endif
+
+
 /*
  * Variables for checking to make sure the system isn't too loaded
  * for people to play