X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Flogfile.c;h=102f12b3a9b7589a5d340fadc6f1ef43e89ae888;hb=1a7050de376608268d11293d4e5faa3fb8516c5a;hp=d251284ba1ed89b22d976002ada5e635c4e09ee3;hpb=7b08f89792c84c47b824cd4a7309c948819915fe;p=collectd.git diff --git a/src/logfile.c b/src/logfile.c index d251284b..102f12b3 100644 --- a/src/logfile.c +++ b/src/logfile.c @@ -66,16 +66,7 @@ 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) - 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; @@ -127,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 : */