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

Fix exit value for validate and list mode.

This commit is contained in:
Todd C. Miller
2011-03-06 15:52:40 -05:00
parent a0ba308694
commit e65bc35c6d

View File

@@ -546,8 +546,10 @@ sudoers_policy_main(int argc, char * const argv[], int pwflag, char *env_add[],
if (def_group_plugin)
group_plugin_unload();
if (ISSET(sudo_mode, (MODE_VALIDATE|MODE_CHECK|MODE_LIST)))
if (ISSET(sudo_mode, (MODE_VALIDATE|MODE_CHECK|MODE_LIST))) {
rval = TRUE;
goto done;
}
/*
* Set umask based on sudoers.