diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-09-30 18:26:51 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-09-30 18:26:51 -0400 |
commit | 6b0c587976d5941bce0b7e569a519f7e7fcbc62a (patch) | |
tree | 71b6310267480ebefe2b8e998a4de3996400a6ab | |
parent | 167443591d82be0f23a2e8690fb6095ea0775045 (diff) | |
download | pfsense-6b0c587976d5941bce0b7e569a519f7e7fcbc62a.zip pfsense-6b0c587976d5941bce0b7e569a519f7e7fcbc62a.tar.gz |
If /etc/spwd.db.tmp exists remove it before running pwd_mkdb
-rw-r--r-- | etc/inc/pfsense-utils.inc | 1 |
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(); |