Package: rdist / 6.1.5-19

16-fedora-ssh.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: rdist-6.1.5/src/rshrcmd.c
===================================================================
--- rdist-6.1.5.orig/src/rshrcmd.c
+++ rdist-6.1.5/src/rshrcmd.c
@@ -72,7 +72,7 @@ rshrcmd(ahost, port, luser, ruser, cmd,
 		/* 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);
 		}