Mercurial > dropbear
diff svr-chansession.c @ 279:1f5ec029dfe8
merge of 4c883eb469d2d251ee8abddbc11ae4005db6da17
and bed6155e95a293c9fce7e889d283b5958f3035dc
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 08 Mar 2006 12:53:11 +0000 |
parents | 8438ff0cdb74 044bc108b9b3 |
children | 5d5bbca82aba 3eea61bd9993 dba106bf6b34 8eaa6e3ca6eb |
line wrap: on
line diff
--- a/svr-chansession.c Wed Mar 08 12:53:09 2006 +0000 +++ b/svr-chansession.c Wed Mar 08 12:53:11 2006 +0000 @@ -851,9 +851,7 @@ /* close file descriptors except stdin/stdout/stderr * Need to be sure FDs are closed here to avoid reading files as root */ for (i = 3; i <= (unsigned int)ses.maxfd; i++) { - if (m_close(i) == DROPBEAR_FAILURE) { - dropbear_exit("Error closing file desc"); - } + m_close(i); } /* clear environment */