diff options
Diffstat (limited to 'bin/sh/eval.c')
-rw-r--r-- | bin/sh/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/eval.c b/bin/sh/eval.c index b1609fd..0699a66 100644 --- a/bin/sh/eval.c +++ b/bin/sh/eval.c @@ -499,7 +499,7 @@ evalpipe(n) close(prevfd); } if (pip[1] >= 0) { - if (prevfd < 0) + if (!(prevfd >= 0 && pip[0] == 0)) close(pip[0]); if (pip[1] != 1) { close(1); |