version 1.21, 2003/04/05 17:18:26 |
version 1.22, 2003/04/06 17:57:45 |
|
|
if (opts & WHOLE) |
if (opts & WHOLE) |
source[0] = '\0'; |
source[0] = '\0'; |
else |
else |
strcpy(source, src); |
strlcpy(source, src, sizeof source); |
|
|
if (dest == NULL) { |
if (dest == NULL) { |
opts &= ~WHOLE; /* WHOLE mode only useful if renaming */ |
opts &= ~WHOLE; /* WHOLE mode only useful if renaming */ |
|
|
lp->inum = stp->st_ino; |
lp->inum = stp->st_ino; |
lp->devnum = stp->st_dev; |
lp->devnum = stp->st_dev; |
lp->count = stp->st_nlink - 1; |
lp->count = stp->st_nlink - 1; |
strcpy(lp->pathname, target); |
strlcpy(lp->pathname, target, sizeof lp->pathname); |
strcpy(lp->src, source); |
strlcpy(lp->src, source, sizeof lp->src); |
if (Tdest) |
if (Tdest) |
strcpy(lp->target, Tdest); |
strlcpy(lp->target, Tdest, sizeof lp->target); |
else |
else |
*lp->target = 0; |
*lp->target = 0; |
} |
} |