diff options
author | Jacques Vidrine <nectar@FreeBSD.org> | 2001-12-20 16:03:04 +0000 |
---|---|---|
committer | Jacques Vidrine <nectar@FreeBSD.org> | 2001-12-20 16:03:04 +0000 |
commit | 39373fa71ce3fe0b04b07a5964da691ef68de6ff (patch) | |
tree | e59446920177638efa114d0815d9d6074db6e9be /pw/pwupd.c | |
parent | 47eb2469cc9294cbd046d3c935b81f64d191e232 (diff) | |
download | pw-darwin-39373fa71ce3fe0b04b07a5964da691ef68de6ff.tar.gz pw-darwin-39373fa71ce3fe0b04b07a5964da691ef68de6ff.tar.zst pw-darwin-39373fa71ce3fe0b04b07a5964da691ef68de6ff.zip |
Use correct mode for temporary file.
Reported by: ryan beasley <ryanb@goddamnbastard.org>
Diffstat (limited to 'pw/pwupd.c')
-rw-r--r-- | pw/pwupd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -176,7 +176,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) |