]> git.pld-linux.org Git - packages/rdist.git/blame - rdist-hardlink.patch
- release 14
[packages/rdist.git] / rdist-hardlink.patch
CommitLineData
9db95227
JR
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
3@@ -348,7 +348,7 @@
4 lp->target = strdup(Tdest);
5 else
6 lp->target = NULL;
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.");
10
11 return((struct linkbuf *) NULL);
12@@ -370,7 +370,7 @@
13 "sendhardlink: rname='%s' pathname='%s' src='%s' target='%s'\n",
14 rname, lp->pathname, lp->src, lp->target);
15
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);
20 else {
This page took 0.023753 seconds and 4 git commands to generate.