projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e75ddf
)
logfile plugin: Don't use `access' when adding a logfile: It does not work as expected.
author
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Tue, 27 Mar 2007 21:00:12 +0000
(23:00 +0200)
committer
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Tue, 27 Mar 2007 21:00:12 +0000
(23:00 +0200)
Of as advertised in the manpage, for that matter.
src/logfile.c
patch
|
blob
|
history
diff --git
a/src/logfile.c
b/src/logfile.c
index
ceee7b8
..
4563c89
100644
(file)
--- a/
src/logfile.c
+++ b/
src/logfile.c
@@
-66,18
+66,7
@@
static int logfile_config (const char *key, const char *value)
}
else if (0 == strcasecmp (key, "File")) {
sfree (log_file);
-
- if ((strcasecmp (value, "stdout") == 0)
- || (strcasecmp (value, "stderr") == 0)
- || (access (value, W_OK) == 0))
- log_file = strdup (value);
- else {
- char errbuf[1024];
- /* We can't use `ERROR' yet.. */
- fprintf (stderr, "logfile plugin: Access to %s denied: %s\n",
- value, sstrerror (errno, errbuf, sizeof (errbuf)));
- return 1;
- }
+ log_file = strdup (value);
}
else {
return -1;