diff options
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 */ |