From: Todd C. Miller Date: Thu, 12 Oct 2000 05:30:30 +0000 (+0000) Subject: Allow user to specify umask of 0777 (same as !umask) X-Git-Tag: SUDO_1_6_4~252 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=04777172c069890a17b3a480a064ae8210f5efe7;p=sudo Allow user to specify umask of 0777 (same as !umask) --- diff --git a/defaults.c b/defaults.c index 1727e2d78..a711971b1 100644 --- a/defaults.c +++ b/defaults.c @@ -728,7 +728,7 @@ store_mode(val, def, op) def->sd_un.mode = (mode_t)0777; } else { l = strtol(val, &endp, 8); - if (*endp != '\0' || l < 0 || l >= 0777) + if (*endp != '\0' || l < 0 || l > 0777) return(FALSE); def->sd_un.mode = (mode_t)l; }