summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-12-22 21:25:30 +0000
committerErmal Luçi <eri@pfsense.org>2008-12-22 21:25:30 +0000
commit7fbca3f7de09c7f63163832c6dfda3d6ec8f9274 (patch)
treee4faf3d05607025b5cf7294c33e14448dbf58cda /etc
parent9aa18b77d315638a9fa3481f9713ced3f8d72808 (diff)
downloadpfsense-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.inc4
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
+?>
OpenPOWER on IntegriCloud