summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaksym Telychko <maksym.telychko@globallogic.com>2020-03-30 14:36:58 +0300
committerMaksym Telychko <maksym.telychko@globallogic.com>2020-03-30 14:36:58 +0300
commit24f7d2e0935a3bb43a6b96c0cdc58b1ed3c1cddf (patch)
tree6cf2facfea539fa8cdf622061184ddccb7d24390 /src
parent3c3b31e973c701c0cc12f3494f83b2750ac5c064 (diff)
downloadlibmts-io-24f7d2e0935a3bb43a6b96c0cdc58b1ed3c1cddf.tar.gz
libmts-io-24f7d2e0935a3bb43a6b96c0cdc58b1ed3c1cddf.tar.bz2
libmts-io-24f7d2e0935a3bb43a6b96c0cdc58b1ed3c1cddf.zip
MTX-3262 mpower lockfile: fix file access rights
Diffstat (limited to 'src')
-rw-r--r--src/MTS_IO_LockFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/MTS_IO_LockFile.cpp b/src/MTS_IO_LockFile.cpp
index ce6655c..7f84f42 100644
--- a/src/MTS_IO_LockFile.cpp
+++ b/src/MTS_IO_LockFile.cpp
@@ -52,7 +52,7 @@ bool LockFile::lock(uint32_t attemptMillis)
return true;
}
- m_iLockFd = ::open(m_sFile.c_str(), O_CREAT | O_RDWR, 0666);
+ m_iLockFd = ::open(m_sFile.c_str(), O_CREAT | O_RDWR, 0644);
if (m_iLockFd >= 0) {
MTS::Timer timer;
timer.start();