]> granicus.if.org Git - sudo/commitdiff
added UMASK
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 28 Feb 1994 04:11:33 +0000 (04:11 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 28 Feb 1994 04:11:33 +0000 (04:11 +0000)
sudo.c

diff --git a/sudo.c b/sudo.c
index ff535c90ae1c06e7007ea385957463aa9b6d5b7b..15d83ee38eaf1dbd1125615605ec34b0baaf6a4f 100644 (file)
--- 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]