summaryrefslogtreecommitdiff
path: root/usr.bin/sudo/defaults.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2000-11-21 17:58:46 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2000-11-21 17:58:46 +0000
commitd1d7b874b3324da74716abb8fb820e7c3236b6d9 (patch)
tree38d13958f6f7d19c8c7c02e033537fb4cc0951d1 /usr.bin/sudo/defaults.c
parentba487736f65afcf076779b8dd651785ea0e3db25 (diff)
A few updates from the sudo developement tree:
- Add bsd authentication support (currently disabled) - Always check setenv() return value - Fix umask disabling
Diffstat (limited to 'usr.bin/sudo/defaults.c')
-rw-r--r--usr.bin/sudo/defaults.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/sudo/defaults.c b/usr.bin/sudo/defaults.c
index c6af8f53275..987876a6c97 100644
--- a/usr.bin/sudo/defaults.c
+++ b/usr.bin/sudo/defaults.c
@@ -731,7 +731,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;
}