From: Todd C. Miller Date: Mon, 10 Jul 2017 22:28:10 +0000 (-0600) Subject: Store the debug instance ID for I/O plugins too. X-Git-Tag: SUDO_1_8_21^2~46 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a7759b6261ccf5ad2d4d310de8651b439f0ee73f;p=sudo Store the debug instance ID for I/O plugins too. Now iolog_open() is consistent with policy_open(). --- diff --git a/src/sudo.c b/src/sudo.c index 5c804ca91..2d516fde9 100644 --- a/src/sudo.c +++ b/src/sudo.c @@ -1274,7 +1274,11 @@ iolog_open(struct plugin_container *plugin, struct sudo_settings *settings, sudo_conversation_printf, plugin_settings, user_info, command_info, argc, argv, user_env, plugin->options); } + + /* Stash plugin debug instance ID if set in open() function. */ + plugin->debug_instance = sudo_debug_get_active_instance(); sudo_debug_set_active_instance(sudo_debug_instance); + debug_return_int(ret); }