From 0e223d0197774983a79259a3bbda7fa1111802ba Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Tue, 10 Dec 1996 23:38:54 +0000 Subject: Don't connect the network socket to stderr, this achieves nothing, but prevents the connecting daemon (eg: ssh) asking for passwords etc. Obtained from: ssh FAQ, Thomas Koenig --- net/rdist6/files/patch-ah | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 net/rdist6/files/patch-ah (limited to 'net') diff --git a/net/rdist6/files/patch-ah b/net/rdist6/files/patch-ah new file mode 100644 index 000000000000..19ded6be538b --- /dev/null +++ b/net/rdist6/files/patch-ah @@ -0,0 +1,9 @@ +--- src/rshrcmd.c.dist Tue Dec 12 08:20:56 1995 ++++ src/rshrcmd.c Wed Dec 11 07:14:13 1996 +@@ -64,5 +64,5 @@ + 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); -- cgit v1.2.3