mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Open a write pipe so we can be sure the password goes to the stdinput of the command. This should fix the ssh password problems reported on the forums.
This commit is contained in:
parent
9aa18b77d3
commit
7fbca3f7de
@ -230,7 +230,7 @@ function local_user_set(& $user) {
|
||||
|
||||
if($debug)
|
||||
log_error("Running: {$cmd}");
|
||||
$fd = popen($cmd, "r+");
|
||||
$fd = popen($cmd, "w");
|
||||
fwrite($fd, $user['password']);
|
||||
pclose($fd);
|
||||
|
||||
@ -882,4 +882,4 @@ function session_auth($backing) {
|
||||
return true;
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user