diff options
author | 1996-11-18 10:36:56 +0000 | |
---|---|---|
committer | 1996-11-18 10:36:56 +0000 | |
commit | 5233864cc27d71b5a9ec6f70f313f0b1bb44ee3e (patch) | |
tree | 918c11b9b2abf40daae8096294750a6b97cec3e1 /gnu/usr.bin/cvs/src | |
parent | Updated to sudo 1.5.3 (diff) | |
download | wireguard-openbsd-5233864cc27d71b5a9ec6f70f313f0b1bb44ee3e.tar.xz wireguard-openbsd-5233864cc27d71b5a9ec6f70f313f0b1bb44ee3e.zip |
Properly make use of the CVSROOT/options umask specification and limit
it via bitwise and with 0777.
Diffstat (limited to 'gnu/usr.bin/cvs/src')
-rw-r--r-- | gnu/usr.bin/cvs/src/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gnu/usr.bin/cvs/src/main.c b/gnu/usr.bin/cvs/src/main.c index 2b7dcbe7609..d882632b666 100644 --- a/gnu/usr.bin/cvs/src/main.c +++ b/gnu/usr.bin/cvs/src/main.c @@ -954,8 +954,7 @@ parseopts(root) } else if (!strncmp(buf, "umask=", 6)) { mode_t mode; - mode = (mode_t)strtol(buf+6, NULL, 8); - (void) umask(mode); + cvsumask = (mode_t)(strtol(buf+6, NULL, 8) & 0777); } else if (!strncmp(buf, "dlimit=", 7)) { #ifdef BSD |