From: Todd C. Miller Date: Fri, 2 Mar 2001 14:09:55 +0000 (+0000) Subject: Fix negation of paths in a boolean context. Problem found by apt@UH.EDU X-Git-Tag: SUDO_1_6_4~204 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a64a6abd336e9ce32e334f107f6de073186dcd6d;p=sudo Fix negation of paths in a boolean context. Problem found by apt@UH.EDU --- diff --git a/defaults.c b/defaults.c index 7cace303b..30fd6040c 100644 --- a/defaults.c +++ b/defaults.c @@ -256,7 +256,7 @@ set_default(var, val, op) return(FALSE); } } - if ((cur->type & T_PATH) && *val != '/') { + if ((cur->type & T_PATH) && val && *val != '/') { (void) fprintf(stderr, "%s: values for `%s' must start with a '/'\n", Argv[0], var);