diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-06-08 09:46:06 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-06-08 09:46:06 +0000 |
commit | e679952ef9f73bf28d58a7cd443c9bce31df5e9d (patch) | |
tree | 55a489c8a5fa7ba4b11ae34d4035e739bc0dd169 /gnu/usr.bin | |
parent | fdc68389b9dfe6e5d35bc6cb6b180e9daf9e61e2 (diff) |
more careful umask handling, but does it fix the bug i have seen?
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r-- | gnu/usr.bin/cvs/src/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gnu/usr.bin/cvs/src/main.c b/gnu/usr.bin/cvs/src/main.c index 7265fc271ae..0dc461a5684 100644 --- a/gnu/usr.bin/cvs/src/main.c +++ b/gnu/usr.bin/cvs/src/main.c @@ -873,10 +873,10 @@ parseopts() char *RCS_citag = strdup(buf+4); setenv("RCSLOCALID", RCS_citag, 1); } else if (!strncmp(buf, "umask=", 6)) { - int mode; + mode_t mode; - mode = strtol(buf+6, NULL, 8); - umask((mode_t)mode); + mode = (mode_t)strtol(buf+6, NULL, 8); + (void) umask(mode); } else if (!strncmp(buf, "dlimit=", 7)) { #ifdef __OpenBSD__ |