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:
parent
6038d8a3b9
commit
ce80ed021f
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user