[#4927] error in kpasswd_expect
Summary error in kpasswd_expect
Queue Passwd
Queue Version 3.0
Type Bug
State Resolved
Priority 1. Low
Owners Chuck Hagenbuch <chuck (at) horde (dot) org>
Requester bailey (at) wickedknight (dot) net
Created 01/22/2007 (475 days ago)
Due
Updated 01/22/2007 (475 days ago)
Assigned
Resolved 01/22/2007 (475 days ago)
Attachments
Milestone
Patch

History
01/22/2007 Chuck Hagenbuch Assigned to Chuck Hagenbuch
 
01/22/2007 Chuck Hagenbuch Comment #2
State ⇒ Resolved
Reply to this comment
Fixed, thanks!
01/22/2007 bailey (at) wickedknight (dot) net Comment #1
Type ⇒ Bug
Summary ⇒ error in kpasswd_expect
Priority ⇒ 1. Low
State ⇒ Unconfirmed
Queue ⇒ Passwd
Reply to this comment
Was looking at the kpasswd_expect script and noticed that it won't close out the error log correctly. Forgets to reference the err variable as $err the last couple of times at the end of the script.

ie.
expect {
eof {
puts $err $expect_out(buffer)
close err
exit 1
}
"Password changed."
{
close err
exit 0
}
}

close err
exit 0

Should be:
expect {
eof {
puts $err $expect_out(buffer)
close $err
exit 1
}
"Password changed."
{
close $err
exit 0
}
}

close $err
exit 0