X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Flogfile.c;h=102f12b3a9b7589a5d340fadc6f1ef43e89ae888;hb=1a7050de376608268d11293d4e5faa3fb8516c5a;hp=ceee7b80c10d8aeddb40f2a75d961c64a0927f9c;hpb=26a74c3827e6152bca39da79715f4a14ae2c38f7;p=collectd.git diff --git a/src/logfile.c b/src/logfile.c index ceee7b80..102f12b3 100644 --- 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; @@ -129,7 +118,6 @@ void module_register (void) plugin_register_config ("logfile", logfile_config, config_keys, config_keys_num); plugin_register_log ("logfile", logfile_log); - return; } /* void module_register (void) */ /* vim: set sw=4 ts=4 tw=78 noexpandtab : */