Mercurial > hg > early-roguelike
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 142:6b5fbd7c3ece | 143:7faf4568c295 |
|---|---|
| 42 */ | 42 */ |
| 43 #ifndef SCOREFILE | 43 #ifndef SCOREFILE |
| 44 #define SCOREFILE "arogue7.scr" | 44 #define SCOREFILE "arogue7.scr" |
| 45 #endif | 45 #endif |
| 46 | 46 |
| 47 #ifndef LOGFILE | |
| 48 #define LOGFILE "arogue7.log" | |
| 49 #endif | |
| 50 | |
| 51 #ifndef SAVEDIR | |
| 52 #define SAVEDIR "." | |
| 53 #endif | |
| 54 | |
| 55 | |
| 47 /* | 56 /* |
| 48 * Variables for checking to make sure the system isn't too loaded | 57 * Variables for checking to make sure the system isn't too loaded |
| 49 * for people to play | 58 * for people to play |
| 50 */ | 59 */ |
| 51 | 60 |
