aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ.W. Schultz <jw@samba.org>2004-02-10 23:23:09 +0000
committerJ.W. Schultz <jw@samba.org>2004-02-10 23:23:09 +0000
commit62125b10c92883c168d6efc1be6b3331035f8bfa (patch)
treed261ac83c079e2ecf6c6ae766a6e1d373d0157a3
parent81c3a3a86e47acad6b277531cb6153a95488665d (diff)
downloadandroid_external_rsync-62125b10c92883c168d6efc1be6b3331035f8bfa.tar.gz
android_external_rsync-62125b10c92883c168d6efc1be6b3331035f8bfa.tar.bz2
android_external_rsync-62125b10c92883c168d6efc1be6b3331035f8bfa.zip
Simplified test for hardlink in make_backup debug message to
avoid core-dump.
-rw-r--r--backup.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/backup.c b/backup.c
index 248ae90a..9765d6f5 100644
--- a/backup.c
+++ b/backup.c
@@ -264,11 +264,8 @@ static int keep_backup(char *fname)
kept = 1;
}
#endif
- if (!kept && preserve_hard_links && file->link_u.links
- && hlink_list[file->F_HLINDEX] != file) {
- if (verbose > 1)
- rprintf(FINFO, "%s is a hard link\n", f_name(file));
- }
+ if (!kept && preserve_hard_links && file->link_u.links && verbose > 1)
+ rprintf(FINFO, "%s was a hard link\n", f_name(file));
if (!kept && !S_ISREG(file->mode)) {
rprintf(FINFO, "make_bak: skipping non-regular file %s\n",