summaryrefslogtreecommitdiffstats
path: root/libutil
diff options
context:
space:
mode:
authorPierre Beyssac <pb@FreeBSD.org>1999-06-29 01:04:10 +0000
committerPierre Beyssac <pb@FreeBSD.org>1999-06-29 01:04:10 +0000
commit2d30c0ac43556350c78b7082e1ebcb48332d2ec9 (patch)
tree0ff9a7661b81d76480877edfe6109cb2d3b81193 /libutil
parent071cc7aa76c53bf1b1f69b50539da010759022c8 (diff)
downloadpw-darwin-2d30c0ac43556350c78b7082e1ebcb48332d2ec9.tar.gz
pw-darwin-2d30c0ac43556350c78b7082e1ebcb48332d2ec9.tar.zst
pw-darwin-2d30c0ac43556350c78b7082e1ebcb48332d2ec9.zip
Move call to umask(0) back into pw_util(), because the latter
function is also used by chpass(1) and passwd(1).
Diffstat (limited to 'libutil')
-rw-r--r--libutil/pw_util.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libutil/pw_util.c b/libutil/pw_util.c
index 5930342..057b8bc 100644
--- a/libutil/pw_util.c
+++ b/libutil/pw_util.c
@@ -36,7 +36,7 @@
static const char sccsid[] = "@(#)pw_util.c 8.3 (Berkeley) 4/2/94";
#endif
static const char rcsid[] =
- "$Id: pw_util.c,v 1.14 1999/06/26 07:16:38 sheldonh Exp $";
+ "$Id: pw_util.c,v 1.15 1999/06/26 12:15:37 pb Exp $";
#endif /* not lint */
/*
@@ -103,6 +103,9 @@ pw_init()
(void)signal(SIGQUIT, SIG_IGN);
(void)signal(SIGTERM, SIG_IGN);
(void)signal(SIGCONT, pw_cont);
+
+ /* Create with exact permissions. */
+ (void)umask(0);
}
int