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:
parent
1a5e14ad9b
commit
3554339257
9 changed files with 123 additions and 38 deletions
|
|
@ -57,3 +57,8 @@ extern char *xcrypt();
|
|||
*/
|
||||
|
||||
#define FUDGE_TIME 200
|
||||
|
||||
/* file locations */
|
||||
#define SCOREFILE "xrogue.scr"
|
||||
#define LOGFILE "xrogue.log"
|
||||
#define SAVEDIR "."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue