diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-12-13 23:12:26 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-12-13 23:12:26 +0000 |
commit | 8ef1f1b171407cfa4b9bdbba61f92944a13b1e87 (patch) | |
tree | 8c0df183538a21ce59839a591e8a3c12d8898004 /etc/inc | |
parent | 9bb3e055fbcd765efcccc51186ab67e580e8fc25 (diff) | |
download | pfsense-8ef1f1b171407cfa4b9bdbba61f92944a13b1e87.zip pfsense-8ef1f1b171407cfa4b9bdbba61f92944a13b1e87.tar.gz |
If /etc/pwd.db.tmp exists when we are syncing the password database then remove the temporary file prior to attempting to sync.
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index c598e98..7e0e29b 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -2513,6 +2513,9 @@ function sync_webgui_passwords() { return 1; } + if(file_exists("/etc/pwd.db.tmp")) + unlink("/etc/pwd.db.tmp"); + mwexec("/usr/sbin/pwd_mkdb -d /etc -p /etc/master.passwd"); mwexec("/usr/sbin/pwd_mkdb -p /etc/master.passwd"); /* sync root */ |