Return -1, not 0 from sudoers when there is an error (as opposed to

a policy denial).
This commit is contained in:
Todd C. Miller
2015-06-25 11:12:36 -06:00
parent 81f94499bf
commit d3bc17a611
3 changed files with 43 additions and 26 deletions

View File

@@ -272,7 +272,7 @@ output(const char *buf)
* Print out privileges for the specified user.
* We only get here if the user is allowed to run something.
*/
void
bool
display_privs(struct sudo_nss_list *snl, struct passwd *pw)
{
struct sudo_nss *nss;
@@ -332,7 +332,7 @@ display_privs(struct sudo_nss_list *snl, struct passwd *pw)
sudo_lbuf_destroy(&defs);
sudo_lbuf_destroy(&privs);
debug_return;
debug_return_bool(true); /* XXX */
}
/*