From: Todd C. Miller Date: Mon, 8 Jun 2015 19:57:14 +0000 (-0600) Subject: Remove support for converting plugin.so -> plugin.sl on HP-UX when X-Git-Tag: SUDO_1_8_14^2~95 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7107ce4d1d763474adca95840c45115d5fb8f5f7;p=sudo Remove support for converting plugin.so -> plugin.sl on HP-UX when plugin.so can not be found. This was a temporary hack for using an older (pre 1.8.7) sudoers plugin with a newer sudo front-end. --- diff --git a/doc/UPGRADE b/doc/UPGRADE index 7d3dc1c0b..b4ba2157b 100644 --- a/doc/UPGRADE +++ b/doc/UPGRADE @@ -1,6 +1,14 @@ Notes on upgrading from an older release ======================================== +o Upgrading from a version prior to 1.8.14: + + On HP-UX, sudo will no longer check for "plugin.sl" if "plugin.so" + is specified but does not exist. This was a temporary hack for + backwards compatibility with Sudo 1.8.6 and below when the + plugin path name was not listed in sudo.conf. A plugin path + name that explicitly ends in ".sl" will still work as expected. + o Upgrading from a version prior to 1.8.10: The time stamp file format has changed in sudo 1.8.10. There diff --git a/src/load_plugins.c b/src/load_plugins.c index 91b4be894..9a9e480c5 100644 --- a/src/load_plugins.c +++ b/src/load_plugins.c @@ -103,29 +103,6 @@ sudo_stat_plugin(struct plugin_info *info, char *fullpath, errno = serrno; } } -# ifdef __hpux - /* Try .sl instead of .so on HP-UX for backwards compatibility. */ - if (status != 0) { - size_t len = strlen(info->path); - if (len >= 3 && info->path[len - 3] == '.' && - info->path[len - 2] == 's' && info->path[len - 1] == 'o') { - const char *sopath = info->path; - char *slpath = sudo_estrdup(info->path); - int serrno = errno; - - slpath[len - 1] = 'l'; - info->path = slpath; - status = sudo_stat_plugin(info, fullpath, pathsize, sb); - if (status == 0) { - sudo_efree((void *)sopath); - } else { - sudo_efree(slpath); - info->path = sopath; - errno = serrno; - } - } - } -# endif /* __hpux */ } done: debug_return_int(status);