diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-12-22 21:25:30 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-12-22 21:25:30 +0000 |
commit | 7fbca3f7de09c7f63163832c6dfda3d6ec8f9274 (patch) | |
tree | e4faf3d05607025b5cf7294c33e14448dbf58cda /etc | |
parent | 9aa18b77d315638a9fa3481f9713ced3f8d72808 (diff) | |
download | pfsense-7fbca3f7de09c7f63163832c6dfda3d6ec8f9274.zip pfsense-7fbca3f7de09c7f63163832c6dfda3d6ec8f9274.tar.gz |
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.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/auth.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc index 62bf489..5e46c25 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 +?> |