diff options
author | peter <peter@FreeBSD.org> | 1996-12-11 07:38:54 +0800 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-12-11 07:38:54 +0800 |
commit | caa18f7ed8d11cf129dde7107259b86551d6e25c (patch) | |
tree | 00cc41742ebfe8f8d7944cfc8a6ef7a2090ad950 /net | |
parent | 1a25421355f1a359c8f7759530b634d8396171be (diff) | |
download | freebsd-ports-gnome-caa18f7ed8d11cf129dde7107259b86551d6e25c.tar.gz freebsd-ports-gnome-caa18f7ed8d11cf129dde7107259b86551d6e25c.tar.zst freebsd-ports-gnome-caa18f7ed8d11cf129dde7107259b86551d6e25c.zip |
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 <ciw.uni-karlsruhe.de>
Diffstat (limited to 'net')
-rw-r--r-- | net/rdist6/files/patch-ah | 9 |
1 files changed, 9 insertions, 0 deletions
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); |