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

Flags always have a NULL value. Regression introduced by refactor

of set_default_entry().
This commit is contained in:
Todd C. Miller
2016-08-12 15:03:54 -06:00
parent 1ca261c305
commit 8c2b6fb34e

View File

@@ -196,7 +196,7 @@ set_default_entry(struct sudo_defs_types *def, const char *val, int op,
int rc;
debug_decl(set_default_entry, SUDOERS_DEBUG_DEFAULTS)
if (val == NULL) {
if (val == NULL && !ISSET(def->type, T_FLAG)) {
/* Check for bogus boolean usage or missing value if non-boolean. */
if (!ISSET(def->type, T_BOOL) || op != false) {
if (!quiet)