2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

Main sudo no longer print "unable to execute" on exec failure so do it here.

This commit is contained in:
Todd C. Miller
2010-04-14 05:51:11 -04:00
parent ea523b17a4
commit 6aecf3fb15

View File

@@ -268,10 +268,10 @@ sudoers_policy_open(unsigned int version, sudo_conv_t conversation,
}
static void
sudoers_policy_close(int exit_status, int error)
sudoers_policy_close(int exit_status, int error_code)
{
/* XXX - fill in */
return;
if (error)
warningx("unable to execute %s: %s", safe_cmnd, strerror(error_code));
}
static int