aboutsummaryrefslogtreecommitdiffstats
path: root/usr.sbin/pw/pwupd.c
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
commit5b5ef9ff478150b37dcbfec6e9eb0af735f01cf6 (patch)
tree1c0ac782038481e088c9c26f602a106db25e659a /usr.sbin/pw/pwupd.c
parent137f46730499be20b5b9f461f4068eecec174e22 (diff)
downloadsrc-5b5ef9ff478150b37dcbfec6e9eb0af735f01cf6.tar.gz
src-5b5ef9ff478150b37dcbfec6e9eb0af735f01cf6.zip
MFC 1.18: Use correct mode for temporary file.
Notes
Notes: svn path=/releng/4.4/; revision=88350
Diffstat (limited to 'usr.sbin/pw/pwupd.c')
-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)