(file) Return to OOPProviderManagerRouter.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / ProviderManagerService / Attic

Diff for /pegasus/src/Pegasus/ProviderManagerService/Attic/OOPProviderManagerRouter.cpp between version 1.10 and 1.11

version 1.10, 2007/05/25 18:35:17 version 1.11, 2007/05/30 20:41:28
Line 393 
Line 393 
     PEG_METHOD_ENTER(     PEG_METHOD_ENTER(
         TRC_PROVIDERMANAGER, "ProviderAgentContainer::_startAgentProcess");         TRC_PROVIDERMANAGER, "ProviderAgentContainer::_startAgentProcess");
  
     PEGASUS_UID_T newUid = (PEGASUS_UID_T)-1;  
     PEGASUS_GID_T newGid = (PEGASUS_GID_T)-1;  
   
 # ifndef PEGASUS_DISABLE_PROV_USERCTXT  
   
     newUid = getuid();  
     newGid = getgid();  
   
     // Get and save the effective user name and the uid/gid for the user  
     // context of the agent process  
   
     String effectiveUserName = System::getEffectiveUserName();  
   
     if (_userName != effectiveUserName)  
     {  
         if (!System::lookupUserId(_userName.getCString(), newUid, newGid))  
         {  
             throw PEGASUS_CIM_EXCEPTION_L(  
                 CIM_ERR_FAILED,  
                 MessageLoaderParms(  
                     "ProviderManager.OOPProviderManagerRouter."  
                         "USER_CONTEXT_CHANGE_FAILED",  
                     "Unable to change user context to \"$0\".", _userName));  
         }  
     }  
   
 # endif /* PEGASUS_DISABLE_PROV_USERCTXT */  
   
     // Start the provider agent.     // Start the provider agent.
  
     int pid;     int pid;
Line 431 
Line 403 
         (const char*)_moduleName.getCString(),         (const char*)_moduleName.getCString(),
         ConfigManager::getPegasusHome(),         ConfigManager::getPegasusHome(),
         _userName,         _userName,
         newUid,  
         newGid,  
         pid,         pid,
         readPipe,         readPipe,
         writePipe);         writePipe);


Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2