Fix error message when a fully-qualified plugin path does not exist.
This commit is contained in:
@@ -119,9 +119,13 @@ sudo_check_plugin(struct plugin_info *info, char *fullpath, size_t pathsize)
|
||||
if (sudo_stat_plugin(info, fullpath, pathsize, &sb) != 0) {
|
||||
sudo_warnx(U_("error in %s, line %d while loading plugin \"%s\""),
|
||||
_PATH_SUDO_CONF, info->lineno, info->symbol_name);
|
||||
sudo_warn("%s%s",
|
||||
sudo_conf_plugin_dir_path() ? sudo_conf_plugin_dir_path() : "",
|
||||
info->path);
|
||||
if (info->path[0] == '/') {
|
||||
sudo_warn("%s", info->path);
|
||||
} else {
|
||||
sudo_warn("%s%s",
|
||||
sudo_conf_plugin_dir_path() ? sudo_conf_plugin_dir_path() : "",
|
||||
info->path);
|
||||
}
|
||||
goto done;
|
||||
}
|
||||
if (sb.st_uid != ROOT_UID) {
|
||||
|
Reference in New Issue
Block a user