version 1.76.2.3, 2008/06/30 14:28:44
|
version 1.77.4.2, 2008/12/02 06:25:57
|
|
|
#if defined(PEGASUS_OS_SOLARIS) || \ | #if defined(PEGASUS_OS_SOLARIS) || \ |
defined(PEGASUS_OS_HPUX) || \ | defined(PEGASUS_OS_HPUX) || \ |
defined(PEGASUS_OS_LINUX) || \ | defined(PEGASUS_OS_LINUX) || \ |
defined (PEGASUS_OS_VMS) |
defined (PEGASUS_OS_VMS) || \ |
|
defined (PEGASUS_OS_AIX) |
| |
const unsigned int PWD_BUFF_SIZE = 1024; | const unsigned int PWD_BUFF_SIZE = 1024; |
struct passwd pwd; | struct passwd pwd; |
struct passwd *result; |
|
char pwdBuffer[PWD_BUFF_SIZE]; | char pwdBuffer[PWD_BUFF_SIZE]; |
| |
if (getpwnam_r(userName.getCString(), &pwd, pwdBuffer, PWD_BUFF_SIZE, | if (getpwnam_r(userName.getCString(), &pwd, pwdBuffer, PWD_BUFF_SIZE, |