projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
080ddc1
)
Fix warning
author
Eric Andersen
<andersen@codepoet.org>
Tue, 22 Oct 2002 22:15:33 +0000
(22:15 -0000)
committer
Eric Andersen
<andersen@codepoet.org>
Tue, 22 Oct 2002 22:15:33 +0000
(22:15 -0000)
shell/ash.c
patch
|
blob
|
history
diff --git
a/shell/ash.c
b/shell/ash.c
index f0729ed4d4c6f64f6897a06acf829efeaaf18c0b..d20618d3cbf5c74a63b1237ee6795f266d470b25 100644
(file)
--- a/
shell/ash.c
+++ b/
shell/ash.c
@@
-10877,6
+10877,7
@@
static void redirect(union node *redir, int flags)
INTOFF;
newfd = openredirect(n);
if ((flags & REDIR_PUSH) && sv->renamed[fd] == EMPTY) {
+ i = fd;
if (newfd == fd) {
try++;
} else if ((i = fcntl(fd, F_DUPFD, 10)) == -1) {