File rdist-6.1.5-ssh.patch of Package rdist
--- rdist-6.1.5/src/rshrcmd.c
+++ rdist-6.1.5/src/rshrcmd.c
@@ -72,7 +72,7 @@
/* 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);
}