}
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;
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 : */