aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-18 12:42:12 +0100
committerMax Kellermann <max@duempel.org>2014-01-18 12:42:12 +0100
commit9f3ce7551a481f757feeb6837961f565a686c945 (patch)
tree97c96186581b00ac307c2b4e69b0440f43671754 /src
parent5f3b79e21d88595c53fb9e8b36b312187f4a7b5c (diff)
downloadmpd-9f3ce7551a481f757feeb6837961f565a686c945.tar.gz
mpd-9f3ce7551a481f757feeb6837961f565a686c945.tar.xz
mpd-9f3ce7551a481f757feeb6837961f565a686c945.zip
PidFile: open in write-only mode
Diffstat (limited to 'src')
-rw-r--r--src/PidFile.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PidFile.hxx b/src/PidFile.hxx
index cd9c38d43..c06ed6b61 100644
--- a/src/PidFile.hxx
+++ b/src/PidFile.hxx
@@ -37,7 +37,7 @@ public:
if (path.IsNull())
return;
- file = FOpen(path, "w+");
+ file = FOpen(path, "w");
if (file == nullptr) {
const std::string utf8 = path.ToUTF8();
FormatFatalSystemError("Failed to create pid file \"%s\"",