diff options
author | Matt Johnston <matt@ucc.asn.au> | 2006-03-08 12:53:11 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2006-03-08 12:53:11 +0000 |
commit | 882a9ced901348b3a48023443bfd23e0ef9d9b67 (patch) | |
tree | 49eb55a60d0a1bec86a1cb19eb06656e5a1c7a4e /svr-chansession.c | |
parent | e4697de1757849bccfeb201ed2f2f98996e11934 (diff) | |
parent | 422f4f2b41e9623af73f2ab69e4ab2ed8098551c (diff) |
merge of 4c883eb469d2d251ee8abddbc11ae4005db6da17
and bed6155e95a293c9fce7e889d283b5958f3035dc
--HG--
extra : convert_revision : fff0894a0399405a9410ea1c6d118f342cf2aa64
Diffstat (limited to 'svr-chansession.c')
-rw-r--r-- | svr-chansession.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/svr-chansession.c b/svr-chansession.c index 8ddbe40..0916e7e 100644 --- a/svr-chansession.c +++ b/svr-chansession.c @@ -851,9 +851,7 @@ static void execchild(struct ChanSess *chansess) { /* 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 */ |