Close file descriptors when [n]>&- and [n]<&- redirections are used.

This was broken by rev. 1.16.

PR:		40334
MFC after:	1 week
This commit is contained in:
Tim J. Robbins 2002-07-09 08:55:46 +00:00
parent 6038d8a3b9
commit ce80ed021f

View File

@ -247,7 +247,8 @@ openredirect(union node *redir, char memory[10])
close(fd);
copyfd(redir->ndup.dupfd, fd);
}
}
} else
close(fd);
break;
case NHERE:
case NXHERE: