off by one found by Ed Maste (emaste@github)

This commit is contained in:
Bryan Stansell 2019-03-17 09:22:36 -07:00
parent 6526fcd002
commit 5ab4cad967

View File

@ -918,7 +918,7 @@ ExecCmd(void)
closefrom(i);
#else
i = GetMaxFiles();
for ( /* i above */ ; --i > 3;) {
for ( /* i above */ ; --i > 2;) {
if (i != pout[0] && i != pin[1])
close(i);
}