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.
This commit is contained in:
@@ -1,6 +1,14 @@
|
|||||||
Notes on upgrading from an older release
|
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:
|
o Upgrading from a version prior to 1.8.10:
|
||||||
|
|
||||||
The time stamp file format has changed in sudo 1.8.10. There
|
The time stamp file format has changed in sudo 1.8.10. There
|
||||||
|
@@ -103,29 +103,6 @@ sudo_stat_plugin(struct plugin_info *info, char *fullpath,
|
|||||||
errno = serrno;
|
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:
|
done:
|
||||||
debug_return_int(status);
|
debug_return_int(status);
|
||||||
|
Reference in New Issue
Block a user