- if (!log_format_has_i && verbose > 1)
- rprintf(FINFO, "\"%s\" is a hard link\n", f_name(file));
+ if (!log_format_has_i && verbose > 1) {
+ rprintf(FINFO, "\"%s\" is a hard link\n",
+ f_name(file, NULL));
+ }
if (link_stat(toname, &st2, 0) < 0) {
rsyserr(FERROR, errno, "stat %s failed",
full_fname(toname));
if (link_stat(toname, &st2, 0) < 0) {
rsyserr(FERROR, errno, "stat %s failed",
full_fname(toname));
int statret, ndx = master;
file->F_HLINDEX = FINISHED_LINK;
int statret, ndx = master;
file->F_HLINDEX = FINISHED_LINK;
- if (link_stat(f_name_to(file, hlink1), &st1, 0) < 0)
+ if (link_stat(f_name(file, hlink1), &st1, 0) < 0)
statret = link_stat(hlink2, &st2, 0);
maybe_hard_link(file, ndx, hlink2, statret, &st2,
hlink1, &st1, itemizing, code);
statret = link_stat(hlink2, &st2, 0);
maybe_hard_link(file, ndx, hlink2, statret, &st2,
hlink1, &st1, itemizing, code);