mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
The pipleline problem introduced in version 1.22 wasn't fully fixed in
1.23. This revision should work for long pipes both in here-documents/backquote and in normal cases. Fix works for jmz, bde.
This commit is contained in:
parent
dc7c1750c2
commit
6d9efc2432
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue