aboutsummaryrefslogtreecommitdiffstats
path: root/src/unix/PidFile.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-03-05 08:02:07 +0100
committerMax Kellermann <max@duempel.org>2015-03-05 08:58:04 +0100
commit39c96694454822ade1d3a686f6e29bd52fa5a4d1 (patch)
treec4a9c64a84c09caa9d0d8057a5a71be53536dcb7 /src/unix/PidFile.hxx
parent44565e22a054b9bdeb48e79e1d23f914b7efaa0f (diff)
downloadmpd-39c96694454822ade1d3a686f6e29bd52fa5a4d1.tar.gz
mpd-39c96694454822ade1d3a686f6e29bd52fa5a4d1.tar.xz
mpd-39c96694454822ade1d3a686f6e29bd52fa5a4d1.zip
fs/Traits: add macro PATH_LITERAL()
Diffstat (limited to 'src/unix/PidFile.hxx')
-rw-r--r--src/unix/PidFile.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unix/PidFile.hxx b/src/unix/PidFile.hxx
index 76d0f13cc..3c3d5ca21 100644
--- a/src/unix/PidFile.hxx
+++ b/src/unix/PidFile.hxx
@@ -37,7 +37,7 @@ public:
if (path.IsNull())
return;
- file = FOpen(path, "w");
+ file = FOpen(path, FOpenMode::WriteText);
if (file == nullptr) {
const std::string utf8 = path.ToUTF8();
FormatFatalSystemError("Failed to create pid file \"%s\"",