diff options
| author | Martin Cracauer <cracauer@FreeBSD.org> | 1999-11-17 16:53:34 +0000 |
|---|---|---|
| committer | Martin Cracauer <cracauer@FreeBSD.org> | 1999-11-17 16:53:34 +0000 |
| commit | 6d9efc2432ee9582ada3d30fd5ff34d95434fa0c (patch) | |
| tree | 54aaa0c4a8b60f53007b5185fa0c25cdd27bdafa | |
| parent | dc7c1750c2209ce9ed7a2f49c4f12791b6bd0f52 (diff) | |
Notes
| -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 b1609fd1f934e..0699a66983918 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); |
