Merge branch 'collectd-4.0' into collectd-4.1
[collectd.git] / src / logfile.c
index d251284..102f12b 100644 (file)
@@ -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 : */