1Upstream-Status: Inappropriate [1] 2 3[1] Not the author, the patch is from: 4http://vault.centos.org/5.8/os/SRPMS/rdist-6.1.5-44.src.rpm 5 6--- rdist-6.1.5/src/client.c.hardlink Thu Jun 3 13:56:31 1999 7+++ rdist-6.1.5/src/client.c Thu Jun 3 14:00:06 1999 8@@ -348,7 +348,7 @@ 9 lp->target = strdup(Tdest); 10 else 11 lp->target = NULL; 12- if (!lp->pathname || !lp->src || !(Tdest && lp->target)) 13+ if (!lp->pathname || !lp->src || (Tdest && !lp->target)) 14 fatalerr("Cannot malloc memory in linkinfo."); 15 16 return((struct linkbuf *) NULL); 17@@ -370,7 +370,7 @@ 18 "sendhardlink: rname='%s' pathname='%s' src='%s' target='%s'\n", 19 rname, lp->pathname, lp->src, lp->target); 20 21- if (*lp->target == CNULL) 22+ if (lp->target == NULL || *lp->target == CNULL) 23 (void) sendcmd(C_RECVHARDLINK, "%o %s %s", 24 opts, lp->pathname, rname); 25 else { 26