From: Todd C. Miller Date: Mon, 28 Feb 1994 04:11:33 +0000 (+0000) Subject: added UMASK X-Git-Tag: SUDO_1_3_1~315 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f96b43c2929ede32192b4ca962aa422789ae665b;p=sudo added UMASK --- diff --git a/sudo.c b/sudo.c index ff535c90a..15d83ee38 100644 --- a/sudo.c +++ b/sudo.c @@ -193,6 +193,10 @@ static void load_globals() } uid = getuid(); /* we need to tuck this away for safe keeping */ +#ifdef UMASK + (void) umask((mode_t)UMASK); +#endif /* UMASK */ + /* * loading the cmnd global variable from argv[1]