summaryrefslogtreecommitdiffstats
path: root/usr.bin/rdist
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1996-12-10 23:41:27 +0000
committerpeter <peter@FreeBSD.org>1996-12-10 23:41:27 +0000
commit269f480296807b55ea10c6d98c9ddb93270fd299 (patch)
tree04e7f94c5cdaf57a0c553d71de4b3ee331588699 /usr.bin/rdist
parentae7d09b0cc87cae330acb41a4b08be75698b675a (diff)
downloadFreeBSD-src-269f480296807b55ea10c6d98c9ddb93270fd299.zip
FreeBSD-src-269f480296807b55ea10c6d98c9ddb93270fd299.tar.gz
Don't dup the network pipe to stderr, it prevents ssh from asking for a
password. Obtained from: ssh FAQ, Thomas.Koenig@ciw.uni-karlsruhe.de
Diffstat (limited to 'usr.bin/rdist')
-rw-r--r--usr.bin/rdist/rshrcmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/rdist/rshrcmd.c b/usr.bin/rdist/rshrcmd.c
index 2cb8ef2..0a81b41 100644
--- a/usr.bin/rdist/rshrcmd.c
+++ b/usr.bin/rdist/rshrcmd.c
@@ -6,7 +6,7 @@
#ifndef lint
static char RCSid[] =
-"$Id: rshrcmd.c,v 1.7 1995/12/12 00:20:55 mcooper Exp $";
+"$Id: rshrcmd.c,v 1.1 1996/08/10 07:54:17 peter Exp $";
#endif
#include "defs.h"
@@ -79,7 +79,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.", strerror(errno));
_exit(255);
}
OpenPOWER on IntegriCloud