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:
Ermal Luçi 2008-12-22 21:25:30 +00:00
parent 9aa18b77d3
commit 7fbca3f7de

View File

@ -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;
}
?>
?>