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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=99645
@ -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