From 8ef1f1b171407cfa4b9bdbba61f92944a13b1e87 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 13 Dec 2007 23:12:26 +0000 Subject: If /etc/pwd.db.tmp exists when we are syncing the password database then remove the temporary file prior to attempting to sync. --- etc/inc/pfsense-utils.inc | 3 +++ 1 file changed, 3 insertions(+) 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 */ -- cgit v1.1