| Summary: | Incorrect return code if mux master has completed | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Peter Oliver <peter.oliver> | ||||||
| Component: | ssh | Assignee: | Assigned to nobody <unassigned-bugs> | ||||||
| Status: | CLOSED FIXED | ||||||||
| Severity: | minor | CC: | djm | ||||||
| Priority: | P2 | ||||||||
| Version: | 5.2p1 | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Bug Depends on: | |||||||||
| Bug Blocks: | 1626 | ||||||||
| Attachments: |
|
||||||||
|
Description
Peter Oliver
2009-03-11 00:12:17 AEDT
Created attachment 1617 [details]
vs 5.2p1 - Don't recycle channel id 0
The attached patch prevents channel id 0 from being reused. This causes client_input_channel_req to correctly forward the exit value to the mux client.
Created attachment 1719 [details]
prefer to dispatch exit statuses via mux control fd
I think this approach is better: this implicitly identifies mux channels that have recycled the initial session ID by preferring to dispatch exit statuses via ones that have a control FD (i.e. mux channels) to ones that don't (i.e. the initial session).
Put this on the list for openssh-5.4 patch applied. The fix will be in OpenSSH 5.4 - thanks for the detailed report. With the release of 5.4p1, this bug is now considered closed. |