From 7fbca3f7de09c7f63163832c6dfda3d6ec8f9274 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=C3=A7i?= Date: Mon, 22 Dec 2008 21:25:30 +0000 Subject: [PATCH] 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. --- etc/inc/auth.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc index 62bf4895aa..5e46c25512 100644 --- a/etc/inc/auth.inc +++ b/etc/inc/auth.inc @@ -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; } -?> \ No newline at end of file +?>