aboutsummaryrefslogtreecommitdiffstats
path: root/guts/dup2.c
diff options
context:
space:
mode:
Diffstat (limited to 'guts/dup2.c')
-rw-r--r--guts/dup2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/guts/dup2.c b/guts/dup2.c
index 360c3ad..59d5293 100644
--- a/guts/dup2.c
+++ b/guts/dup2.c
@@ -8,10 +8,10 @@
/* close existing one first - this also causes the socket to the
* server to get moved around if someone tries to overwrite it. */
pseudo_debug(2, "dup2: %d->%d\n", oldfd, newfd);
- pseudo_client_op(OP_CLOSE, 0, newfd, -1, 0, 0);
+ pseudo_client_op(OP_CLOSE, newfd, -1, 0, 0);
rc = real_dup2(oldfd, newfd);
save_errno = errno;
- pseudo_client_op(OP_DUP, 0, oldfd, newfd, 0, 0);
+ pseudo_client_op(OP_DUP, oldfd, newfd, 0, 0);
errno = save_errno;
/* return rc;