[PATCH] dropbear-051: errno bug fix

2008-09-19 Thread Farrell Aultman
The code assumed that when strol is successful, that it will set errno to zero. This is not the case, at least under uClinux. The man page does not indicate this either. What can happen is that errno is already set to non-zero before strol is called, then strol is successful but since strol does

[PATCH] dropbear-051: uClinux vfork

2008-09-19 Thread Farrell Aultman
Between dropbear-047 and dropbear-051 changes were made that accounted for the fact that uClinux needs to use vfork instead of fork. However, fork was not replaced with vfork in all places. I moved the conditional preproccessor check for uClinux into the includes.h file, so that fork is always re

[PATCH] dropbear-051: Kill child (shell) process when dropbear exits

2008-09-19 Thread Farrell Aultman
Dropbear child process (shells created by client connections) would hang around after the server process has exited. This patch will kill these child processes when the dropbear server exits. Common subdirectories: ../../dropbear-vanilla/dropbear-0.51/debian and ../../dropbear-killchild/dropbear-

[PATCH] dropbear-051: idle_timeout command line option

2008-09-19 Thread Farrell Aultman
This adds a command line option for specifying an idle_timeout. The command line is: -I . If dropbear doesn't receive any data packets within , the dropbear process associated with that session will exit. diff -up ../../dropbear-vanilla/dropbear-0.51/cli-runopts.c ../../dropbear-idle_timeout/dr