(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.6.14.1 and 1.13

version 1.6.14.1, 2003/08/13 19:39:51 version 1.13, 2003/12/19 21:40:57
Line 1 
Line 1 
 //%/////////////////////////////////////////////////////////////////////////////  //%2003////////////////////////////////////////////////////////////////////////
 // //
 // Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM,  // Copyright (c) 2000, 2001, 2002  BMC Software, Hewlett-Packard Development
 // The Open Group, Tivoli Systems  // Company, L. P., IBM Corp., The Open Group, Tivoli Systems.
   // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L. P.;
   // IBM Corp.; EMC Corporation, The Open Group.
 // //
 // Permission is hereby granted, free of charge, to any person obtaining a copy // Permission is hereby granted, free of charge, to any person obtaining a copy
 // of this software and associated documentation files (the "Software"), to // of this software and associated documentation files (the "Software"), to
Line 115 
Line 117 
         _fileName = new char [strlen(fileName)+1];         _fileName = new char [strlen(fileName)+1];
         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
       //
       //
       if ( !FileSystem::changeFilePermissions(String(_fileName), S_IRUSR) )
   #else
       if ( !FileSystem::changeFilePermissions(String(_fileName), (_S_IREAD | _S_IWRITE )) )
   #endif
       {
           Logger::put_l(Logger::DEBUG_LOG,"Tracer",Logger::WARNING,
              "Common.TraceFileHandler.FAILED_TO_SET_FILE_PERMISSIONS",
              "Failed to set permissions on file $0", _fileName);
               return 1;
       }
   
     return 0;     return 0;
 } }
  


Legend:
Removed from v.1.6.14.1  
changed lines
  Added in v.1.13

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2