Do not write directly to stdout/stderr, use sudo_printf which calls

the conversation function.
This commit is contained in:
Todd C. Miller
2016-05-14 19:34:13 -06:00
parent 90fdb6a316
commit 9d526c1af5
2 changed files with 4 additions and 2 deletions

View File

@@ -2534,7 +2534,8 @@ sudo_ldap_display_cmnd(struct sudo_nss *nss, struct passwd *pw)
done:
if (found)
printf("%s%s%s\n", safe_cmnd ? safe_cmnd : user_cmnd,
sudo_printf(SUDO_CONV_INFO_MSG, "%s%s%s\n",
safe_cmnd ? safe_cmnd : user_cmnd,
user_args ? " " : "", user_args ? user_args : "");
debug_return_int(!found);
}