diff options
author | Andrew Tridgell <tridge@samba.org> | 1997-12-17 11:07:17 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1997-12-17 11:07:17 +0000 |
commit | 82306bf6d644ceca9ef07b4989fb317fc8a613e5 (patch) | |
tree | 81b10c4e7d5888e8bf42510541dffa32bf1c9a1b /hlink.c | |
parent | cbbe4892087b74fb8ed2aac6078ee933ac02e920 (diff) | |
download | rsync-82306bf6d644ceca9ef07b4989fb317fc8a613e5.tar.gz rsync-82306bf6d644ceca9ef07b4989fb317fc8a613e5.tar.bz2 rsync-82306bf6d644ceca9ef07b4989fb317fc8a613e5.zip |
*** empty log message ***
Diffstat (limited to 'hlink.c')
-rw-r--r-- | hlink.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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", |