projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05b7b7e
)
logfile plugin: Don't call `access' with `stdout' and `stderr'.
author
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Tue, 27 Mar 2007 13:07:23 +0000
(15:07 +0200)
committer
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Tue, 27 Mar 2007 13:07:23 +0000
(15:07 +0200)
src/logfile.c
patch
|
blob
|
history
diff --git
a/src/logfile.c
b/src/logfile.c
index
d251284
..
ceee7b8
100644
(file)
--- 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];