Fixed small but in the call to `plugin_load': We need the `value', not the `key'..
{
if (mkdir (dir, 0755) == -1)
{
- syslog (LOG_ERR, "mkdir: %s", strerror (errno));
+ syslog (LOG_ERR, "mkdir (%s): %s", dir, strerror (errno));
return (-1);
}
else if (chdir (dir) == -1)
{
- syslog (LOG_ERR, "chdir: %s", strerror (errno));
+ syslog (LOG_ERR, "chdir (%s): %s", dir, strerror (errno));
return (-1);
}
}
{
if (mkdir (dir, 0755) == -1)
{
- syslog (LOG_ERR, "mkdir %s: %s", dir, strerror (errno));
+ syslog (LOG_ERR, "mkdir (%s): %s", dir, strerror (errno));
return (-1);
}
}
else
{
- syslog (LOG_ERR, "stat %s: %s", dir, strerror (errno));
+ syslog (LOG_ERR, "stat (%s): %s", dir, strerror (errno));
return (-1);
}
}
return (LC_CBRET_ERROR);
}
- if (plugin_load (shortvar))
+ if (plugin_load (value))
syslog (LOG_ERR, "plugin_load (%s): failed to load plugin", shortvar);
/* Return `okay' even if there was an error, because it's not a syntax