From a45f581b2a37a1aa447ab98efed742467eb8fd14 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Thu, 9 Jun 2005 21:56:11 +0000 Subject: [PATCH] - Never output the '"FOO" is a hard link' message when -i (%i) output is enabled. - Go back to outputting '"FOO" is a hard link' message when -i (%i) is not enabled and verbose > 1. --- hlink.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hlink.c b/hlink.c index 49d3530d..5a4077db 100644 --- a/hlink.c +++ b/hlink.c @@ -23,6 +23,7 @@ extern int dry_run; extern int verbose; extern int make_backups; +extern int log_format_has_i; extern struct file_list *the_file_list; #ifdef SUPPORT_HARD_LINKS @@ -180,7 +181,7 @@ int hard_link_check(struct file_struct *file, int ndx, char *fname, head = hlink_list[file->F_HLINDEX]; if (ndx != head) { struct file_struct *head_file = FPTR(head); - if (verbose > 2) { + if (!log_format_has_i && verbose > 1) { rprintf(FINFO, "\"%s\" is a hard link\n", safe_fname(f_name(file))); } -- 2.34.1