summaryrefslogtreecommitdiff
path: root/hlink.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1997-12-17 11:07:17 +0000
committerAndrew Tridgell <tridge@samba.org>1997-12-17 11:07:17 +0000
commit82306bf6d644ceca9ef07b4989fb317fc8a613e5 (patch)
tree81b10c4e7d5888e8bf42510541dffa32bf1c9a1b /hlink.c
parentcbbe4892087b74fb8ed2aac6078ee933ac02e920 (diff)
downloadrsync-82306bf6d644ceca9ef07b4989fb317fc8a613e5.tar.gz
rsync-82306bf6d644ceca9ef07b4989fb317fc8a613e5.tar.bz2
rsync-82306bf6d644ceca9ef07b4989fb317fc8a613e5.zip
*** empty log message ***
Diffstat (limited to 'hlink.c')
-rw-r--r--hlink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hlink.c b/hlink.c
index 6e4e31fb..495c0a86 100644
--- a/hlink.c
+++ b/hlink.c
@@ -116,8 +116,8 @@ void do_hard_links(struct file_list *flist)
hlink_list[i].inode == hlink_list[i-1].inode) {
struct stat st1,st2;
- if (lstat(hlink_list[i-1].name,&st1) != 0) continue;
- if (lstat(hlink_list[i].name,&st2) != 0) {
+ if (link_stat(hlink_list[i-1].name,&st1) != 0) continue;
+ if (link_stat(hlink_list[i].name,&st2) != 0) {
if (!dry_run && link(hlink_list[i-1].name,hlink_list[i].name) != 0) {
if (verbose > 0)
fprintf(FINFO,"link %s => %s : %s\n",