From c4ff98e620f6fb0a36c4f3aed5a9c28219e99711 Mon Sep 17 00:00:00 2001 From: Martin Chang Date: Wed, 16 Sep 2020 00:59:19 +0800 Subject: [PATCH] remove execution permission on /tmp/drogon.lock (#575) --- lib/src/ListenerManager.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/ListenerManager.cc b/lib/src/ListenerManager.cc index 837da953..4b52079c 100644 --- a/lib/src/ListenerManager.cc +++ b/lib/src/ListenerManager.cc @@ -34,7 +34,7 @@ class DrogonFileLocker : public trantor::NonCopyable public: DrogonFileLocker() { - fd_ = open("/tmp/drogon.lock", O_TRUNC | O_CREAT, 0755); + fd_ = open("/tmp/drogon.lock", O_TRUNC | O_CREAT, 0666); flock(fd_, LOCK_EX); } ~DrogonFileLocker() @@ -269,4 +269,4 @@ std::vector ListenerManager::getListeners() const listeners.emplace_back(server->address()); } return listeners; -} \ No newline at end of file +}