Project

General

Profile

« Previous | Next » 

Revision 4882f3f0

Added by Scott Ullrich over 17 years ago

If /etc/pwd.db.tmp exists when we are syncing the password database then remove the temporary file prior to attempting to sync.

View differences:

etc/inc/pfsense-utils.inc
2412 2412
	fclose($fd);
2413 2413
	chmod("{$g['varrun_path']}/htpasswd", 0600);
2414 2414
	$crypted_pw = $config['system']['password'];
2415
	if(file_exists("/etc/pwd.db.tmp")) 
2416
		unlink("/etc/pwd.db.tmp");
2415 2417
	mwexec("/usr/sbin/pwd_mkdb -d /etc -p /etc/master.passwd");
2416 2418
	mwexec("/usr/sbin/pwd_mkdb -p /etc/master.passwd");
2417 2419
	/* sync root */
......
3620 3622
	return false;
3621 3623
}
3622 3624

  
3623
?>
3625
?>

Also available in: Unified diff