diff options
Diffstat (limited to 'src/unix/PidFile.hxx')
-rw-r--r-- | src/unix/PidFile.hxx | 2 |
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\"", |