1*4882a593SmuzhiyunUpstream-Status: Inappropriate [1] 2*4882a593Smuzhiyun 3*4882a593Smuzhiyun[1] Not the author, the patch is from: 4*4882a593Smuzhiyunhttp://vault.centos.org/5.8/os/SRPMS/rdist-6.1.5-44.src.rpm 5*4882a593Smuzhiyun 6*4882a593Smuzhiyun--- rdist-6.1.5/src/rshrcmd.c.dist Tue Dec 12 08:20:56 1995 7*4882a593Smuzhiyun+++ rdist-6.1.5/src/rshrcmd.c Wed Dec 11 07:14:13 1996 8*4882a593Smuzhiyun@@ -64,5 +64,5 @@ 9*4882a593Smuzhiyun sp[0]. */ 10*4882a593Smuzhiyun (void) close(sp[0]); 11*4882a593Smuzhiyun- if (dup2(sp[1], 0) < 0 || dup2(0,1) < 0 || dup2(0, 2) < 0) { 12*4882a593Smuzhiyun+ if (dup2(sp[1], 0) < 0 || dup2(0,1) < 0) { 13*4882a593Smuzhiyun error("dup2 failed: %s.", SYSERR); 14*4882a593Smuzhiyun _exit(255); 15