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.
This commit is contained in:
John "Elwin" Edwards 2015-05-16 13:39:26 -04:00
parent 1a5e14ad9b
commit 3554339257
9 changed files with 123 additions and 38 deletions

View file

@ -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