From: Bruno Haible Date: Sun, 23 Aug 2009 11:10:40 +0000 (+0200) Subject: Oops, fix last commit. X-Git-Tag: v0.1~5606 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;ds=inline;h=d7834f34cb055a90437b1076b2c94bad34e317b8;p=gnulib.git Oops, fix last commit. --- diff --git a/lib/pipe2.c b/lib/pipe2.c index 805c3f560..726813f9a 100644 --- a/lib/pipe2.c +++ b/lib/pipe2.c @@ -89,9 +89,15 @@ pipe2 (int fd[2], int flags) #if O_BINARY if (flags & O_BINARY) - setmode (fd, O_BINARY); + { + setmode (fd[1], O_BINARY); + setmode (fd[0], O_BINARY); + } else if (flags & O_TEXT) - setmode (fd, O_TEXT); + { + setmode (fd[1], O_TEXT); + setmode (fd[0], O_TEXT); + } #endif return 0;