You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by jb...@apache.org on 2003/10/18 17:37:33 UTC
cvs commit: xml-xerces/c/src/xercesc/util/Platforms/MacOS MacPosixFile.cpp
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: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org