Revision 99f1084a
Added by Scott Ullrich over 17 years ago
etc/inc/pfsense-utils.inc | ||
---|---|---|
2549 | 2549 |
fclose($fd); |
2550 | 2550 |
chmod("{$g['varrun_path']}/htpasswd", 0600); |
2551 | 2551 |
|
2552 |
if ($config['system']['user']) { |
|
2553 |
$root =& getUNIXRoot(); |
|
2554 |
$crypted_pw = &$root['password']; |
|
2555 |
} |
|
2552 |
$root =& getUNIXRoot(); |
|
2553 |
$crypted_pw = &$root['password']; |
|
2556 | 2554 |
|
2557 | 2555 |
if (!$crypted_pw) { |
2558 | 2556 |
log_error("Error: cannot determine root pwd in sync_webgui_passwords().\nRoot user struct follows:\n"); |
Also available in: Unified diff
Correctly grab root object for setting password.