Changeset 208
- Timestamp:
- 06/22/07 10:53:52 (1 year ago)
- Files:
-
- trunk/src/z-file.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/z-file.c
r199 r208 37 37 #ifdef SET_UID 38 38 # if defined(HAVE_SETRESGID) 39 39 40 if (setresgid(-1, getgid(), -1) != 0) 40 quit("setegid(): cannot setpermissions correctly!");41 quit("setegid(): cannot drop permissions correctly!"); 41 42 42 43 # elif defined(HAVE_SETEGID) 43 44 44 45 if (setegid(getgid()) != 0) 45 quit("setegid(): cannot setpermissions correctly!");46 quit("setegid(): cannot drop permissions correctly!"); 46 47 47 48 # else 48 49 49 50 if (setgid(getgid()) != 0) 50 quit("setgid(): cannot setpermissions correctly!");51 quit("setgid(): cannot drop permissions correctly!"); 51 52 52 53 # endif … … 62 63 #ifdef SET_UID 63 64 # if defined(HAVE_SETRESGID) 65 64 66 if (setresgid(-1, player_egid, -1) != 0) 65 quit("setegid(): cannot setpermissions correctly!");67 quit("setegid(): cannot grab permissions correctly!"); 66 68 67 69 # elif defined(HAVE_SETEGID) 68 70 69 71 if (setegid(player_egid) != 0) 70 quit("setegid(): cannot setpermissions correctly!");72 quit("setegid(): cannot grab permissions correctly!"); 71 73 72 74 # else 73 75 74 76 if (setgid(player_egid) != 0) 75 quit("setgid(): cannot setpermissions correctly!");77 quit("setgid(): cannot grab permissions correctly!"); 76 78 77 79 # endif
