Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use new pathjoin() function.
[rsync/rsync.git]
/
backup.c
diff --git
a/backup.c
b/backup.c
index
90676f9
..
dd1b3dd
100644
(file)
--- a/
backup.c
+++ b/
backup.c
@@
-265,7
+265,8
@@
static int keep_backup(char *fname)
kept = 1;
}
#endif
kept = 1;
}
#endif
- if (!kept && preserve_hard_links && check_hard_link(file)) {
+ if (!kept && preserve_hard_links && file->link_u.links
+ && file->F_HEAD != file) {
if (verbose > 1)
rprintf(FINFO, "%s is a hard link\n", f_name(file));
}
if (verbose > 1)
rprintf(FINFO, "%s is a hard link\n", f_name(file));
}