From 5d9ff9cced55ecd4b486d15858ec85006ab6d338 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Fri, 8 Nov 2013 14:08:01 +0000 Subject: QPID-5309: don't set executable flag on page file git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1540039 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/sys/posix/MemoryMappedFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/src/qpid/sys/posix/MemoryMappedFile.cpp') diff --git a/cpp/src/qpid/sys/posix/MemoryMappedFile.cpp b/cpp/src/qpid/sys/posix/MemoryMappedFile.cpp index 1696736213..b60aaae2e1 100644 --- a/cpp/src/qpid/sys/posix/MemoryMappedFile.cpp +++ b/cpp/src/qpid/sys/posix/MemoryMappedFile.cpp @@ -66,7 +66,7 @@ std::string MemoryMappedFile::open(const std::string& name, const std::string& d std::string path = getFileName(name, directory); int flags = O_CREAT | O_TRUNC | O_RDWR; - int fd = ::open(path.c_str(), flags, S_IRWXU); + int fd = ::open(path.c_str(), flags, S_IRUSR | S_IWUSR); if (fd == -1) throw qpid::Exception(QPID_MSG("Failed to open memory mapped file " << path << ": " << qpid::sys::strError(errno) << " [flags=" << flags << "]")); state->fd = fd; return path; -- cgit v1.2.1