]> granicus.if.org Git - sudo/commitdiff
Allow user to specify umask of 0777 (same as !umask)
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 12 Oct 2000 05:30:30 +0000 (05:30 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 12 Oct 2000 05:30:30 +0000 (05:30 +0000)
defaults.c

index 1727e2d78727aedea5ed3e3579f8b9d415b3a75b..a711971b125cf92679dba163215994222208e687 100644 (file)
@@ -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;
     }