mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 22:35:10 +00:00
Flags always have a NULL value. Regression introduced by refactor
of set_default_entry().
This commit is contained in:
@@ -196,7 +196,7 @@ set_default_entry(struct sudo_defs_types *def, const char *val, int op,
|
|||||||
int rc;
|
int rc;
|
||||||
debug_decl(set_default_entry, SUDOERS_DEBUG_DEFAULTS)
|
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. */
|
/* Check for bogus boolean usage or missing value if non-boolean. */
|
||||||
if (!ISSET(def->type, T_BOOL) || op != false) {
|
if (!ISSET(def->type, T_BOOL) || op != false) {
|
||||||
if (!quiet)
|
if (!quiet)
|
||||||
|
Reference in New Issue
Block a user