diff options
author | Wayne Davison <wayned@samba.org> | 2006-01-13 21:17:09 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2006-01-13 21:17:09 +0000 |
commit | 45c49b52a488882bbbd5366420389abbbeede7c9 (patch) | |
tree | fe86f6a50bb45f0a4eeeb71a9c8f02d0f487b592 /hlink.c | |
parent | 0ee32c62d3ba303f30007c8d53f327a8d98bfdf9 (diff) | |
download | rsync-45c49b52a488882bbbd5366420389abbbeede7c9.tar.gz |
Got rid of calls to (the soon to vanish) safe_fname() function.
Diffstat (limited to 'hlink.c')
-rw-r--r-- | hlink.c | 14 |
1 files changed, 5 insertions, 9 deletions
@@ -181,10 +181,8 @@ int hard_link_check(struct file_struct *file, int ndx, char *fname, head = hlink_list[file->F_HLINDEX]; if (ndx != head) { struct file_struct *head_file = FPTR(head); - if (!log_format_has_i && verbose > 1) { - rprintf(FINFO, "\"%s\" is a hard link\n", - safe_fname(f_name(file))); - } + if (!log_format_has_i && verbose > 1) + rprintf(FINFO, "\"%s\" is a hard link\n", f_name(file)); if (head_file->F_HLINDEX == FINISHED_LINK) { STRUCT_STAT st2, st3; char *toname = f_name(head_file); @@ -242,7 +240,7 @@ int hard_link_one(struct file_struct *file, int ndx, char *fname, } else code = FERROR; rsyserr(code, errno, "link %s => %s failed", - full_fname(fname), safe_fname(toname)); + full_fname(fname), toname); return -1; } @@ -251,10 +249,8 @@ int hard_link_one(struct file_struct *file, int ndx, char *fname, ITEM_LOCAL_CHANGE | ITEM_XNAME_FOLLOWS, 0, terse ? "" : toname); } - 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); return 0; } #endif |