version 1.14, 2003/12/21 17:48:45
|
version 1.15, 2004/02/11 16:34:05
|
|
|
strcpy (_fileName,fileName); | strcpy (_fileName,fileName); |
} | } |
| |
#if !defined(PEGASUS_OS_TYPE_WINDOWS) |
|
// |
|
// Set permissions on the trace file to 0400 |
|
// for z/OS, as Pegasus is intended to run as restricted user (not root), |
|
// Set permissions on the trace file to 0400 |
|
// | // |
|
// Set permissions on the trace file to 0600 |
// | // |
#if !defined(PEGASUS_OS_ZOS) |
#if !defined(PEGASUS_OS_TYPE_WINDOWS) |
if ( !FileSystem::changeFilePermissions(String(_fileName), S_IRUSR) ) |
|
#else |
|
if ( !FileSystem::changeFilePermissions(String(_fileName), (S_IRUSR|S_IWUSR)) ) | if ( !FileSystem::changeFilePermissions(String(_fileName), (S_IRUSR|S_IWUSR)) ) |
#endif |
|
#else | #else |
if ( !FileSystem::changeFilePermissions(String(_fileName), (_S_IREAD | _S_IWRITE )) ) | if ( !FileSystem::changeFilePermissions(String(_fileName), (_S_IREAD | _S_IWRITE )) ) |
#endif | #endif |