aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shell/ash.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/shell/ash.c b/shell/ash.c
index f0729ed4d..d20618d3c 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -10877,6 +10877,7 @@ static void redirect(union node *redir, int flags)
10877 INTOFF; 10877 INTOFF;
10878 newfd = openredirect(n); 10878 newfd = openredirect(n);
10879 if ((flags & REDIR_PUSH) && sv->renamed[fd] == EMPTY) { 10879 if ((flags & REDIR_PUSH) && sv->renamed[fd] == EMPTY) {
10880 i = fd;
10880 if (newfd == fd) { 10881 if (newfd == fd) {
10881 try++; 10882 try++;
10882 } else if ((i = fcntl(fd, F_DUPFD, 10)) == -1) { 10883 } else if ((i = fcntl(fd, F_DUPFD, 10)) == -1) {