summaryrefslogtreecommitdiffstats
path: root/adduser
diff options
context:
space:
mode:
authorGuy Helmer <ghelmer@FreeBSD.org>2001-08-01 15:27:39 +0000
committerGuy Helmer <ghelmer@FreeBSD.org>2001-08-01 15:27:39 +0000
commit09be925c9cc2d5b43c8fc008e629472d8892081e (patch)
treeeae446da27ba325ce419f919156d57fa2b59e66a /adduser
parente9d05c96ffbc7855054de386f0ec023b288d82b9 (diff)
downloadpw-darwin-09be925c9cc2d5b43c8fc008e629472d8892081e.tar.gz
pw-darwin-09be925c9cc2d5b43c8fc008e629472d8892081e.tar.zst
pw-darwin-09be925c9cc2d5b43c8fc008e629472d8892081e.zip
Install the new password file with pwd_mkdb, not the old one.
PR: 29366 (in part)
Diffstat (limited to 'adduser')
-rw-r--r--adduser/rmuser.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/adduser/rmuser.perl b/adduser/rmuser.perl
index 9261708..778cea2 100644
--- a/adduser/rmuser.perl
+++ b/adduser/rmuser.perl
@@ -349,7 +349,7 @@ sub update_passwd_file {
# Run pwd_mkdb to install the updated password files and databases
print STDERR " updating databases,";
- system('/usr/sbin/pwd_mkdb', '-p', ${passwd_file});
+ system('/usr/sbin/pwd_mkdb', '-p', ${passwd_tmp});
print STDERR " done.\n";
close(MASTER_PW); # Not useful anymore