Changeset 892


Ignore:
Timestamp:
31/08/2006 23:35:51 (5 years ago)
Author:
chris
Message:

Disable all calls to set*id() on Win32 (doesn't work) (refs #3)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/chris/merge/lib/common/UnixUser.cpp

    r891 r892  
    7979        { 
    8080                // Revert to "real" user and group id of the process 
     81                #ifdef WIN32 
     82                if(0) 
     83                #else 
    8184                if(::setegid(::getgid()) != 0 
    8285                        || ::seteuid(::getuid()) != 0) 
     86                #endif 
    8387                { 
    8488                        THROW_EXCEPTION(CommonException, CouldNotRestoreProcessUser) 
     
    102106        { 
    103107                // Change temporarily (change effective only) 
     108                #ifdef WIN32 
     109                if(0) 
     110                #else 
    104111                if(::setegid(mGID) != 0 
    105112                        || ::seteuid(mUID) != 0) 
     113                #endif 
    106114                { 
    107115                        THROW_EXCEPTION(CommonException, CouldNotChangeProcessUser) 
     
    113121        else 
    114122        { 
    115                 // Change perminantely (change all UIDs and GIDs) 
     123                // Change permanently (change all UIDs and GIDs) 
     124                #ifdef WIN32 
     125                if(0) 
     126                #else 
    116127                if(::setgid(mGID) != 0 
    117128                        || ::setuid(mUID) != 0) 
     129                #endif 
    118130                { 
    119131                        THROW_EXCEPTION(CommonException, CouldNotChangeProcessUser) 
Note: See TracChangeset for help on using the changeset viewer.