Changeset 892
- Timestamp:
- 31/08/2006 23:35:51 (5 years ago)
- File:
-
- 1 edited
-
box/chris/merge/lib/common/UnixUser.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
box/chris/merge/lib/common/UnixUser.cpp
r891 r892 79 79 { 80 80 // Revert to "real" user and group id of the process 81 #ifdef WIN32 82 if(0) 83 #else 81 84 if(::setegid(::getgid()) != 0 82 85 || ::seteuid(::getuid()) != 0) 86 #endif 83 87 { 84 88 THROW_EXCEPTION(CommonException, CouldNotRestoreProcessUser) … … 102 106 { 103 107 // Change temporarily (change effective only) 108 #ifdef WIN32 109 if(0) 110 #else 104 111 if(::setegid(mGID) != 0 105 112 || ::seteuid(mUID) != 0) 113 #endif 106 114 { 107 115 THROW_EXCEPTION(CommonException, CouldNotChangeProcessUser) … … 113 121 else 114 122 { 115 // Change perminantely (change all UIDs and GIDs) 123 // Change permanently (change all UIDs and GIDs) 124 #ifdef WIN32 125 if(0) 126 #else 116 127 if(::setgid(mGID) != 0 117 128 || ::setuid(mUID) != 0) 129 #endif 118 130 { 119 131 THROW_EXCEPTION(CommonException, CouldNotChangeProcessUser)
Note: See TracChangeset
for help on using the changeset viewer.
