summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-09-30 18:26:51 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-09-30 18:26:51 -0400
commit6b0c587976d5941bce0b7e569a519f7e7fcbc62a (patch)
tree71b6310267480ebefe2b8e998a4de3996400a6ab /etc/inc
parent167443591d82be0f23a2e8690fb6095ea0775045 (diff)
downloadpfsense-6b0c587976d5941bce0b7e569a519f7e7fcbc62a.zip
pfsense-6b0c587976d5941bce0b7e569a519f7e7fcbc62a.tar.gz
If /etc/spwd.db.tmp exists remove it before running pwd_mkdb
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/pfsense-utils.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index db15675..80a2601c 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -1174,6 +1174,7 @@ function reload_all_sync() {
/* sync pw database */
conf_mount_rw();
+ unlink_if_exists("/etc/spwd.db.tmp");
mwexec("/usr/sbin/pwd_mkdb -d /etc/ /etc/master.passwd");
conf_mount_ro();
OpenPOWER on IntegriCloud