summaryrefslogtreecommitdiff
path: root/backup.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2004-01-25 22:32:07 +0000
committerWayne Davison <wayned@samba.org>2004-01-25 22:32:07 +0000
commit91a1e147ae0eaf958d4a7bd76ae037e5c2591c29 (patch)
tree6388097409b74ec053ff70cc8570ef6ebd2a1815 /backup.c
parent40da90423073e7581cdceebd7556bee3a0a41c94 (diff)
downloadrsync-91a1e147ae0eaf958d4a7bd76ae037e5c2591c29.tar.gz
rsync-91a1e147ae0eaf958d4a7bd76ae037e5c2591c29.tar.bz2
rsync-91a1e147ae0eaf958d4a7bd76ae037e5c2591c29.zip
Changed F_HEAD to F_HLINDEX.
Diffstat (limited to 'backup.c')
-rw-r--r--backup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/backup.c b/backup.c
index 3f5c416e..e9dfb496 100644
--- a/backup.c
+++ b/backup.c
@@ -25,6 +25,7 @@ extern int backup_suffix_len;
extern int backup_dir_len;
extern char *backup_suffix;
extern char *backup_dir;
+extern struct file_struct **hlink_list;
extern int am_root;
extern int preserve_devices;
@@ -263,7 +264,7 @@ static int keep_backup(char *fname)
}
#endif
if (!kept && preserve_hard_links && file->link_u.links
- && file->F_HEAD != file) {
+ && hlink_list[file->F_HLINDEX] != file) {
if (verbose > 1)
rprintf(FINFO, "%s is a hard link\n", f_name(file));
}