diff options
-rw-r--r-- | src/libudev/util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libudev/util.c b/src/libudev/util.c index 92fd22775b..43defd35b5 100644 --- a/src/libudev/util.c +++ b/src/libudev/util.c @@ -2975,9 +2975,9 @@ int make_stdio(int fd) { assert(fd >= 0); - r = dup3(fd, STDIN_FILENO, 0); - s = dup3(fd, STDOUT_FILENO, 0); - t = dup3(fd, STDERR_FILENO, 0); + r = dup2(fd, STDIN_FILENO); + s = dup2(fd, STDOUT_FILENO); + t = dup2(fd, STDERR_FILENO); if (fd >= 3) close_nointr_nofail(fd); |