1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/net/rdist6/files/patch-ah
Peter Wemm 0e223d0197 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>
1996-12-10 23:38:54 +00:00

10 lines
314 B
Plaintext

--- 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);