From: Todd C. Miller Date: Wed, 14 Apr 2010 09:51:11 +0000 (-0400) Subject: Main sudo no longer print "unable to execute" on exec failure so do it here. X-Git-Tag: SUDO_1_8_0~723 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6aecf3fb1587403fa75deaa1613535ecc0af22af;p=sudo Main sudo no longer print "unable to execute" on exec failure so do it here. --- diff --git a/plugins/sudoers/sudoers.c b/plugins/sudoers/sudoers.c index 7d1c70506..08a2252eb 100644 --- a/plugins/sudoers/sudoers.c +++ b/plugins/sudoers/sudoers.c @@ -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