diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-03-24 01:29:19 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-03-24 01:29:19 +0000 |
commit | 99f1084a9b1bffcfb49c2324bafb47cf9b2db8c8 (patch) | |
tree | df77def0c5ab148f76e6b81d7c8d980f7faee705 /etc | |
parent | eb0a53b30fee3f4e26639b217015adc14fdd970a (diff) | |
download | pfsense-99f1084a9b1bffcfb49c2324bafb47cf9b2db8c8.zip pfsense-99f1084a9b1bffcfb49c2324bafb47cf9b2db8c8.tar.gz |
Correctly grab root object for setting password.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index e07ff70..c3906e8 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -2549,10 +2549,8 @@ function sync_webgui_passwords() { fclose($fd); chmod("{$g['varrun_path']}/htpasswd", 0600); - if ($config['system']['user']) { - $root =& getUNIXRoot(); - $crypted_pw = &$root['password']; - } + $root =& getUNIXRoot(); + $crypted_pw = &$root['password']; if (!$crypted_pw) { log_error("Error: cannot determine root pwd in sync_webgui_passwords().\nRoot user struct follows:\n"); |