plugins/python: fix confusing version display

IO/Group/Policy Python API version is displayed instead of sudo version,
because that is not very meaningful in this context.

They are only displayed in verbose mode.

Example plugins express it more concrete that they are displaying their
version, not the API version.
This commit is contained in:
Robert Manner
2020-01-09 11:38:08 +01:00
committed by Todd C. Miller
parent 87d76f4bbc
commit 2ee1dd3ec3
5 changed files with 15 additions and 3 deletions

View File

@@ -401,7 +401,6 @@ python_plugin_show_version(struct PluginContext *plugin_ctx, const char *python_
{
debug_decl(python_plugin_show_version, PYTHON_DEBUG_CALLBACKS);
py_sudo_log(SUDO_CONV_INFO_MSG, "Python language plugin version %s\n", PACKAGE_VERSION);
debug_return_int(python_plugin_api_rc_call(plugin_ctx, python_callback_name,
Py_BuildValue("(i)", is_verbose)));
}