enabling the sudoedit_follow option in sudoers or on a per-command
basis with the FOLLOW and NOFOLLOW tags. Bug #707.
+ * Fixed a bug introduced in versino 1.8.14 that caused the last
+ valid editor in the sudoers "editor" list to be used by visudo
+ and sudoedit instead of the first. Bug #714.
+
What's new in Sudo 1.8.14p3
* Fixed a bug introduced in sudo 1.8.14p2 that prevented sudo
if ((editor = getenv(*ev)) != NULL && *editor != '\0') {
editor_path = resolve_editor(editor, strlen(editor),
nfiles, files, argc_out, argv_out, NULL);
- if (editor_path == NULL && errno != ENOENT)
+ if (editor_path != NULL)
+ break;
+ if (errno != ENOENT)
debug_return_str(NULL);
}
}
cp != NULL; cp = sudo_strsplit(NULL, def_editor_end, ":", &ep)) {
editor_path = resolve_editor(cp, (size_t)(ep - cp), 2, files,
editor_argc, editor_argv, whitelist);
- if (editor_path == NULL && errno != ENOENT)
+ if (editor_path != NULL)
+ break;
+ if (errno != ENOENT)
debug_return_str(NULL);
}
}