OpenSSH solaris: bad return code after exec of remote command

Nicolas Williams Nicolas.Williams at ubsw.com
Thu Oct 11 01:04:27 EST 2001


Perhaps wait_status ought to be initialized. Try changing serverloop.c
and initialize wait_status to, say, 51. Then try it again.

Nico


On Wed, Oct 10, 2001 at 12:37:23PM +0200, Markus Friedl wrote:
> On Wed, Oct 10, 2001 at 11:09:17AM +0100, Matthew Seaman wrote:
> > i) SSH2 protocol
> > ii) Using a forced command
> > iii) No stdin on the client --- ie. using `ssh -n' or
> > `ssh host commands </dev/null'.
> 
> i don't see how forced commands should change things here.
> 
> but, yes there are issues with getting the return code from the
> child in ssh2.
> 
> what does
> 	for i in  4 7 44 77; do
> 		ssh -n host exit $i
> 		echo $?
> 	done
> print for you?
--

Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.




More information about the openssh-unix-dev mailing list