From 26a74c3827e6152bca39da79715f4a14ae2c38f7 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 27 Mar 2007 15:07:23 +0200 Subject: [PATCH] logfile plugin: Don't call `access' with `stdout' and `stderr'. --- src/logfile.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/logfile.c b/src/logfile.c index d251284b..ceee7b80 100644 --- a/src/logfile.c +++ b/src/logfile.c @@ -67,7 +67,9 @@ static int logfile_config (const char *key, const char *value) else if (0 == strcasecmp (key, "File")) { sfree (log_file); - if (access (value, W_OK) == 0) + if ((strcasecmp (value, "stdout") == 0) + || (strcasecmp (value, "stderr") == 0) + || (access (value, W_OK) == 0)) log_file = strdup (value); else { char errbuf[1024]; -- 2.11.0