version 1.7, 2007/09/25 17:57:41
|
version 1.7.2.2, 2007/12/03 16:09:42
|
|
|
#include "Macro.h" | #include "Macro.h" |
#include "Assert.h" | #include "Assert.h" |
#include "Options.h" | #include "Options.h" |
|
#include <Pegasus/Common/PegasusVersion.h> |
| |
/* | /* |
**============================================================================== | **============================================================================== |
|
|
Log(LL_TRACE, "running as %s (uid=%d, gid=%d)", | Log(LL_TRACE, "running as %s (uid=%d, gid=%d)", |
username, (int)getuid(), (int)getgid()); | username, (int)getuid(), (int)getgid()); |
| |
|
/* Change the current directory */ |
|
|
|
#if (defined(PEGASUS_OS_HPUX) || defined(PEGASUS_OS_LINUX)) \ |
|
&& defined(PEGASUS_USE_RELEASE_DIRS) |
|
chdir(PEGASUS_CORE_DIR); |
|
#else |
|
chdir("/"); |
|
#endif |
|
|
/* Determine user for running CIMSERVERMAIN. */ | /* Determine user for running CIMSERVERMAIN. */ |
| |
GetServerUser(&childUserName, &childUid, &childGid); | GetServerUser(&childUserName, &childUid, &childGid); |