jberry      2003/10/18 08:37:33

  Modified:    c/src/xercesc/util/Platforms/MacOS MacPosixFile.cpp
  Log:
  Open files for reading as "r", not "r+".
  
  Revision  Changes    Path
  1.2       +2 -2      xml-xerces/c/src/xercesc/util/Platforms/MacOS/MacPosixFile.cpp
  
  Index: MacPosixFile.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/Platforms/MacOS/MacPosixFile.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- MacPosixFile.cpp  23 Feb 2003 04:41:26 -0000      1.1
  +++ MacPosixFile.cpp  18 Oct 2003 15:37:33 -0000      1.2
  @@ -164,7 +164,7 @@
       if (!path)
                ThrowXML(XMLPlatformUtilsException, XMLExcepts::CPtr_PointerIsZero);
   
  -     const char* perms = (toWrite) ? "w" : "r+";
  +     const char* perms = (toWrite) ? "w" : "r";
        mFile = fopen(path, perms);
        
        return (mFile != NULL);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to