aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacques Vidrine <nectar@FreeBSD.org>2001-12-21 15:23:04 +0000
committerJacques Vidrine <nectar@FreeBSD.org>2001-12-21 15:23:04 +0000
commitbe8a6e2d5689528102c0fff99cf07da4f855a743 (patch)
treeb622c15adf633fcdc21f8c6f3d797a7bdd78480d
parent8bf779b28dcbc93f7e41b9dcd6cb8d7e0a0549a0 (diff)
downloadsrc-be8a6e2d5689528102c0fff99cf07da4f855a743.tar.gz
src-be8a6e2d5689528102c0fff99cf07da4f855a743.zip
MFC 1.18: Use correct mode for temporary file.
Notes
Notes: svn path=/releng/4.3/; revision=88350
-rw-r--r--usr.sbin/pw/pwupd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pw/pwupd.c b/usr.sbin/pw/pwupd.c
index fef3662667e9..b95e24b2bc69 100644
--- a/usr.sbin/pw/pwupd.c
+++ b/usr.sbin/pw/pwupd.c
@@ -174,7 +174,7 @@ pw_update(struct passwd * pwd, char const * user, int mode)
*/
if (pwd != NULL)
fmtpwentry(pwbuf, pwd, PWF_MASTER);
- rc = fileupdate(getpwpath(_MASTERPASSWD), 0644, pwbuf, pfx, l, mode);
+ rc = fileupdate(getpwpath(_MASTERPASSWD), 0600, pwbuf, pfx, l, mode);
if (rc == 0) {
#ifdef HAVE_PWDB_U
if (mode == UPD_DELETE || isrename)