(file) Return to TraceFileHandler.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/TraceFileHandler.cpp between version 1.14 and 1.15

version 1.14, 2003/12/21 17:48:45 version 1.15, 2004/02/11 16:34:05
Line 118 
Line 118 
         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


Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2