Return -1, not 0 from sudoers when there is an error (as opposed to
a policy denial).
This commit is contained in:
@@ -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 */
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user