diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1996-09-07 03:15:53 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1996-09-07 03:15:53 +0000 |
commit | ac6d683bf87d4a167a4aae93d8b7405e592efaff (patch) | |
tree | ca6906df2e30c65e993c4c91635c6eb7f22cb124 | |
parent | 52b1b4ee4d0fef47435b4403dae028dd07e67fa9 (diff) |
Don't dup stderr to stdout. This makes rdist happy with ssh when a
password is required.
-rw-r--r-- | usr.bin/rdist/rshrcmd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/rdist/rshrcmd.c b/usr.bin/rdist/rshrcmd.c index 7dac1b6a506..bd38527eea5 100644 --- a/usr.bin/rdist/rshrcmd.c +++ b/usr.bin/rdist/rshrcmd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rshrcmd.c,v 1.5 1996/09/07 03:14:27 millert Exp $ */ +/* $OpenBSD: rshrcmd.c,v 1.6 1996/09/07 03:15:52 millert Exp $ */ /* @@ -8,7 +8,7 @@ #ifndef lint static char RCSid[] = -"$OpenBSD: rshrcmd.c,v 1.5 1996/09/07 03:14:27 millert Exp $"; +"$OpenBSD: rshrcmd.c,v 1.6 1996/09/07 03:15:52 millert Exp $"; #endif #include "defs.h" @@ -65,7 +65,7 @@ rshrcmd(ahost, port, luser, ruser, cmd, fd2p) /* child. we use sp[1] to be stdin/stdout, and close sp[0]. */ (void) close(sp[0]); - if (dup2(sp[1], 0) < 0 || dup2(0,1) < 0 || dup2(0, 2) < 0) { + if (dup2(sp[1], 0) < 0 || dup2(0, 1) < 0) { error("dup2 failed: %s.", SYSERR); _exit(255); } |