When using something like this:
 $ echo foo|grep foo|wc -l
with mksh shell, you get an runtime error.

Glibc and klibc does not do these extra check.
After removing this check using double pipes work fine.
Tested with Qemu 2.1.0.

Signed-off-by: Waldemar Brodkorb <[email protected]>
Signed-off-by: Thorsten Glaser <[email protected]>
---
 libc/sysdeps/linux/sparc/pipe.S | 2 --
 1 file changed, 2 deletions(-)

diff --git a/libc/sysdeps/linux/sparc/pipe.S b/libc/sysdeps/linux/sparc/pipe.S
index 09ef322..b085faf 100644
--- a/libc/sysdeps/linux/sparc/pipe.S
+++ b/libc/sysdeps/linux/sparc/pipe.S
@@ -35,8 +35,6 @@ pipe:
        /* sanity check arguments */
        tst     %i0
        be      .Lerror
-        orcc   %i1,%g0,%o1
-       be      .Lerror
         mov    %i2,%o0
 
        /* Do the system call */
-- 
1.8.5.2 (Apple Git-48)

_______________________________________________
uClibc mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/uclibc

Reply via email to