You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by pe...@apache.org on 2004/09/30 16:01:41 UTC

cvs commit: xml-xerces/c/src/xercesc/util/Platforms/Solaris SolarisPlatformUtils.cpp

peiyongz    2004/09/30 07:01:41

  Modified:    c/src/xercesc/util/Platforms/Solaris
                        SolarisPlatformUtils.cpp
  Log:
  Jira 1274: --patch from Oded Cohen
  
  Revision  Changes    Path
  1.28      +3 -3      xml-xerces/c/src/xercesc/util/Platforms/Solaris/SolarisPlatformUtils.cpp
  
  Index: SolarisPlatformUtils.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/Platforms/Solaris/SolarisPlatformUtils.cpp,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- SolarisPlatformUtils.cpp	8 Sep 2004 13:56:42 -0000	1.27
  +++ SolarisPlatformUtils.cpp	30 Sep 2004 14:01:41 -0000	1.28
  @@ -239,13 +239,13 @@
   {
       const char* tmpFileName = XMLString::transcode(fileName, manager);
       ArrayJanitor<char> janText((char*)tmpFileName, manager);
  -    return (FileHandle)open( tmpFileName , O_WRONLY | O_CREAT | O_LARGEFILE, 0666);
  +    return (FileHandle)open( tmpFileName , O_WRONLY | O_CREAT | O_TRUNC | O_LARGEFILE, 0666);
   }
   
   FileHandle XMLPlatformUtils::openFileToWrite(const char* const fileName
                                                , MemoryManager* const manager)
   {
  -    return (FileHandle)open( fileName , O_WRONLY | O_CREAT | O_LARGEFILE, 0666);
  +    return (FileHandle)open( fileName , O_WRONLY | O_CREAT | O_TRUNC | O_LARGEFILE, 0666);
   }
   
   unsigned int
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org