From e679952ef9f73bf28d58a7cd443c9bce31df5e9d Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 8 Jun 1996 09:46:06 +0000 Subject: more careful umask handling, but does it fix the bug i have seen? --- gnu/usr.bin/cvs/src/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gnu/usr.bin') 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__ -- cgit v1.2.3