summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-11-18 10:36:57 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-11-18 10:36:57 +0000
commitfdc174ea5329323a14bc84e765415bec3e15acdc (patch)
tree83a86acdff38e0eb456fafea12be7250a9e2bcfc /gnu
parente71f2cc6283138b5c7fcc5c32cddcf788390c570 (diff)
Properly make use of the CVSROOT/options umask specification and limit
it via bitwise and with 0777.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/cvs/src/main.c3
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