Summary | passwd_expect patch |
Queue | Passwd |
Queue Version | HEAD |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | |
Requester | asuffield (at) suffields (dot) me (dot) uk |
Created | 11/09/2006 (6784 days ago) |
Due | |
Updated | 11/12/2006 (6781 days ago) |
Assigned | |
Resolved | 11/12/2006 (6781 days ago) |
Milestone | |
Patch | No |
State ⇒ Resolved
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ passwd_expect patch
Queue ⇒ Passwd
New Attachment: passwd_expect.diff
correctly.
I cannot explain why stdin might be in non-blocking mode, but it was,
and so sometimes expect would miss the username/password strings. I
can only put this one down to deep crackfulness on the part of tcl,
expect, apache, or php, and express my strong desire to never know
what is going on there. Understanding this can only lead to
pain. Forcing stdin into blocking mode ensures that it always works.
The exp_continue is necessary because otherwise, if expect sees
$fingerprint_string, it does not bother looking for $password_string
or sending the old password. Obviously nobody ever tested this, it
can't ever have worked.