summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2013-11-08 14:08:01 +0000
committerGordon Sim <gsim@apache.org>2013-11-08 14:08:01 +0000
commit5d9ff9cced55ecd4b486d15858ec85006ab6d338 (patch)
treed8068590d7fe3e4c2fee91e43f6e31911e29bbdd /cpp/src
parent8d7bebbdc5972fd981afa4376eb4aae593b522af (diff)
downloadqpid-python-5d9ff9cced55ecd4b486d15858ec85006ab6d338.tar.gz
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
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/qpid/sys/posix/MemoryMappedFile.cpp2
1 files changed, 1 insertions, 1 deletions
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;