projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2d3fd3
)
fix special-case breakage in popen due to reversed argument order
author
Rich Felker
<dalias@aerifal.cx>
Sun, 1 Sep 2013 21:02:35 +0000
(17:02 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Sun, 1 Sep 2013 21:02:35 +0000
(17:02 -0400)
src/stdio/popen.c
patch
|
blob
|
history
diff --git
a/src/stdio/popen.c
b/src/stdio/popen.c
index 28ff23fd1614422bdbeb907529b08c7ec5c6b413..92cb57ee937b7ea3908de2c0de86ced5eefb3d8d 100644
(file)
--- a/
src/stdio/popen.c
+++ b/
src/stdio/popen.c
@@
-39,7
+39,7
@@
FILE *popen(const char *cmd, const char *mode)
* remove the close-on-exec flag in the child without also creating
* a file descriptor leak race condition in the parent. */
if (p[1-op] == 1-op) {
- int tmp = fcntl(
F_DUPFD_CLOEXEC, 1-op
, 0);
+ int tmp = fcntl(
1-op, F_DUPFD_CLOEXEC
, 0);
if (tmp < 0) {
e = errno;
goto fail;