struct file_struct *head_file = FPTR(head);
if (!log_format_has_i && verbose > 1) {
rprintf(FINFO, "\"%s\" is a hard link\n",
struct file_struct *head_file = FPTR(head);
if (!log_format_has_i && verbose > 1) {
rprintf(FINFO, "\"%s\" is a hard link\n",
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));
} else
code = FERROR;
rsyserr(code, errno, "link %s => %s failed",
} else
code = FERROR;
rsyserr(code, errno, "link %s => %s failed",
- if (code && verbose && !terse) {
- rprintf(code, "%s => %s\n",
- safe_fname(fname), safe_fname(toname));
- }
+ if (code && verbose && !terse)
+ rprintf(code, "%s => %s\n", 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);