<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Michael,<br class=""><br class="">On 2018-11-09 3:48 pm, W. Michael Petullo wrote:<br class="">>> I am using Dropbear v2017.75 as found on OpenWrt.<br class="">>> <br class="">>>         echo input | ssh -T h; echo $?<br class="">>> <br class="">>> Despite the error occurring, the above command line prints `0' rather<br class="">>> than `1.' Since this triggers the error, I would expect the latter<br class="">>> instead.<br class="">> <br class="">> After looking at the code, it appears this block in common-channel.c is<br class="">> the culprit (line 346):<br class=""><br class="">> I think ssh is reaching the EOF on stdin, and then this block causes <br class="">> the<br class="">> channel to close before it reads the exit code from the distant end.<br class=""><br class="">I think this problem might be fixed in v2018.76, <br class=""><a href="https://secure.ucc.asn.au/hg/dropbear/rev/0c16b4ccbd54#l4.46" class="">https://secure.ucc.asn.au/hg/dropbear/rev/0c16b4ccbd54#l4.46</a><br class="">Now the exit code check happens before the line you noted. Somehow that <br class="">got missed in CHANGES.<br class=""><br class="">Cheers,<br class="">Matt</body></html>