From 62125b10c92883c168d6efc1be6b3331035f8bfa Mon Sep 17 00:00:00 2001 From: "J.W. Schultz" Date: Tue, 10 Feb 2004 23:23:09 +0000 Subject: [PATCH] Simplified test for hardlink in make_backup debug message to avoid core-dump. --- backup.c | 7 ++----- 1 file 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", -- 2.34.1