Lines 386-392
copy(char *argv[], enum op type, int fts_options)
Link Here
|
386 |
} |
386 |
} |
387 |
|
387 |
|
388 |
/* Not an error but need to remember it happened */ |
388 |
/* Not an error but need to remember it happened */ |
389 |
if (stat(to.p_path, &to_stat) == -1) |
389 |
if ((!Rflag && stat(to.p_path, &to_stat) == -1) || |
|
|
390 |
(Rflag && lstat(to.p_path, &to_stat) == -1)) |
390 |
dne = 1; |
391 |
dne = 1; |
391 |
else { |
392 |
else { |
392 |
if (to_stat.st_dev == curr->fts_statp->st_dev && |
393 |
if (to_stat.st_dev == curr->fts_statp->st_dev && |
Lines 481-487
copy(char *argv[], enum op type, int fts_options)
Link Here
|
481 |
badcp = rval = 1; |
482 |
badcp = rval = 1; |
482 |
break; |
483 |
break; |
483 |
} |
484 |
} |
484 |
if (vflag && !badcp) |
485 |
if (vflag && !badcp && !nflag) |
485 |
(void)printf("%s -> %s\n", curr->fts_path, to.p_path); |
486 |
(void)printf("%s -> %s\n", curr->fts_path, to.p_path); |
486 |
} |
487 |
} |
487 |
if (errno) |
488 |
if (errno) |