summaryrefslogtreecommitdiffstats
path: root/usr.sbin/vipw/pw_util.c
diff options
context:
space:
mode:
authorpb <pb@FreeBSD.org>1999-06-29 01:04:10 +0000
committerpb <pb@FreeBSD.org>1999-06-29 01:04:10 +0000
commit0ff8a29fa63c9a642eea465fd3d99423ecd05f44 (patch)
treecd1a51253689fa1cdbcd1324edb781d7973a6940 /usr.sbin/vipw/pw_util.c
parent4ee0d623caceb38067be7a43057c2e2dc2c844ae (diff)
downloadFreeBSD-src-0ff8a29fa63c9a642eea465fd3d99423ecd05f44.zip
FreeBSD-src-0ff8a29fa63c9a642eea465fd3d99423ecd05f44.tar.gz
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 'usr.sbin/vipw/pw_util.c')
-rw-r--r--usr.sbin/vipw/pw_util.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/vipw/pw_util.c b/usr.sbin/vipw/pw_util.c
index 5930342..057b8bc 100644
--- a/usr.sbin/vipw/pw_util.c
+++ b/usr.sbin/vipw/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
OpenPOWER on IntegriCloud