From: Todd C. Miller Date: Sun, 11 Apr 2010 21:13:11 +0000 (-0400) Subject: Call the I/O log open function before the I/O version function. X-Git-Tag: SUDO_1_8_0~731 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0494774f30eace05fd961a727b6ed652e9b147ad;p=sudo Call the I/O log open function before the I/O version function. --- diff --git a/src/sudo.c b/src/sudo.c index 2c8d0be8a..75162d2b6 100644 --- a/src/sudo.c +++ b/src/sudo.c @@ -157,7 +157,10 @@ main(int argc, char *argv[], char *envp[]) case MODE_VERSION: policy_plugin.u.policy->show_version(!user_details.uid); tq_foreach_fwd(&io_plugins, plugin) { - plugin->u.io->show_version(!user_details.uid); + ok = plugin->u.io->open(SUDO_API_VERSION, sudo_conversation, + settings, user_info, envp); + if (ok) + plugin->u.io->show_version(user_details.uid == ROOT_UID); } break; case MODE_VALIDATE: