scp log out session after successful completion

Brent Roman brent at mbari.org
Thu Mar 10 07:45:03 WST 2005


Hi Matt,

Sorry about the long delay getting back to you.

The patch you supplied appears to work.
Busybox 1.00 _release_ (as opposed to rc3)
adds code to explicitly turn off non-blocking behavior
if an application hands stdout/stdin back in this state.

It outputs some warning about NDELAY cancelled in this case.
However, with your patch, this warning is suppressed.

I applied it against 0.45.  No problems.

Thanks!

- brent


On Sun, Feb 20, 2005 at 12:07:20AM -0800, Brent Roman wrote:
>/ Hi,
/>/ 
/>/ I'm running dropbear on an embedded ARM from Technologics.
/>/ It's your v0.44 with the 2.4x linux kernel and busybox v1.0
/>/ 
/>/ ... when I invoke dropbear's scp interactively, it appears
/>/ to close stdin (or redirect it ot /dev/null somehow)
/>/ for the shell after completing successfully.
/>/ This causes the shell to logout.
/
This looks similar to a bug which I thought I'd fixed,
related to setting stdin to be non-blocking. 

Could you try the attached patch, which does the same thing
with stdout and stderr?

Cheers,
Matt


-- 
 Brent Roman                                   MBARI
 Software Engineer               Tel: (831) 775-1808
 7700 Sandholdt Road,         Moss Landing, CA 95039
 mailto:brent at mbari.org  http://www.mbari.org/~brent




More information about the Dropbear mailing list