aboutsummaryrefslogtreecommitdiffstats
path: root/src/unix/Daemon.cxx
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/Daemon.cxx
parent44565e22a054b9bdeb48e79e1d23f914b7efaa0f (diff)
downloadmpd-39c96694454822ade1d3a686f6e29bd52fa5a4d1.tar.gz
mpd-39c96694454822ade1d3a686f6e29bd52fa5a4d1.tar.xz
mpd-39c96694454822ade1d3a686f6e29bd52fa5a4d1.zip
fs/Traits: add macro PATH_LITERAL()
Diffstat (limited to 'src/unix/Daemon.cxx')
-rw-r--r--src/unix/Daemon.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unix/Daemon.cxx b/src/unix/Daemon.cxx
index 3787244d7..c3638cc80 100644
--- a/src/unix/Daemon.cxx
+++ b/src/unix/Daemon.cxx
@@ -71,7 +71,7 @@ daemonize_kill(void)
if (pidfile.IsNull())
FatalError("no pid_file specified in the config file");
- fp = FOpen(pidfile, "r");
+ fp = FOpen(pidfile, PATH_LITERAL("r"));
if (fp == nullptr) {
const std::string utf8 = pidfile.ToUTF8();
FormatFatalSystemError("Unable to open pid file \"%s\"",