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

Diff for /pegasus/src/Pegasus/Common/Executor.cpp between version 1.19 and 1.20

version 1.19, 2008/06/19 17:57:00 version 1.20, 2008/08/28 17:24:36
Line 174 
Line 174 
         const char* path,         const char* path,
         int mode)         int mode)
     {     {
           FILE* fhandle = NULL;
         switch (mode)         switch (mode)
         {         {
             case 'r':             case 'r':
                 return fopen(path, "r");                  fhandle = fopen(path, "r");
                   break;
  
             case 'w':             case 'w':
                 return fopen(path, "w");                  fhandle = fopen(path, "w");
                   break;
  
             case 'a':             case 'a':
                 return fopen(path, "a+");                  fhandle = fopen(path, "a+");
                   break;
  
             default:             default:
                 return NULL;                  PEGASUS_ASSERT(fhandle);
                   break;
           }
   
           if(!fhandle)
           {
               PEG_TRACE((TRC_SERVER, Tracer::LEVEL1,
                   "Open of file %s in mode %c failed: %s",path,mode,
                   (const char*) PEGASUS_SYSTEM_ERRORMSG.getCString()));
         }         }
           return fhandle;
     }     }
  
     virtual int renameFile(     virtual int renameFile(


Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2