From 49b311cddd4b52553c18802bafcc2a4d08afef25 Mon Sep 17 00:00:00 2001 From: James David Berry <jberry@apache.org> Date: Sat, 18 Oct 2003 15:37:33 +0000 Subject: [PATCH] Open files for reading as "r", not "r+". git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@175292 13f79535-47bb-0310-9956-ffa450edef68 --- src/xercesc/util/Platforms/MacOS/MacPosixFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xercesc/util/Platforms/MacOS/MacPosixFile.cpp b/src/xercesc/util/Platforms/MacOS/MacPosixFile.cpp index 7eb4dd7d4..5fe15ce70 100644 --- a/src/xercesc/util/Platforms/MacOS/MacPosixFile.cpp +++ b/src/xercesc/util/Platforms/MacOS/MacPosixFile.cpp @@ -164,7 +164,7 @@ XMLMacPosixFile::open(const char* const path, bool toWrite) 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); -- GitLab