1 --- rdist-6.1.5/src/client.c.hardlink Thu Jun 3 13:56:31 1999
2 +++ rdist-6.1.5/src/client.c Thu Jun 3 14:00:06 1999
4 lp->target = strdup(Tdest);
7 - if (!lp->pathname || !lp->src || !(Tdest && lp->target))
8 + if (!lp->pathname || !lp->src || (Tdest && !lp->target))
9 fatalerr("Cannot malloc memory in linkinfo.");
11 return((struct linkbuf *) NULL);
13 "sendhardlink: rname='%s' pathname='%s' src='%s' target='%s'\n",
14 rname, lp->pathname, lp->src, lp->target);
16 - if (*lp->target == CNULL)
17 + if (lp->target == NULL || *lp->target == CNULL)
18 (void) sendcmd(C_RECVHARDLINK, "%o %s %s",
19 opts, lp->pathname, rname);