Avoid dropping a hard-linked itemized output with -ii.
authorWayne Davison <wayned@samba.org>
Sun, 21 Oct 2007 16:50:31 +0000 (16:50 +0000)
committerWayne Davison <wayned@samba.org>
Sun, 21 Oct 2007 16:50:31 +0000 (16:50 +0000)
hlink.c

diff --git a/hlink.c b/hlink.c
index 6dde2cc..3eac930 100644 (file)
--- a/hlink.c
+++ b/hlink.c
@@ -346,7 +346,8 @@ int hard_link_check(struct file_struct *file, int ndx, const char *fname,
                                        continue;
                                statret = 1;
                                if (verbose < 2 || !stdout_format_has_i) {
-                                       itemizing = 0;
+                                       if (stdout_format_has_i < 2)
+                                               itemizing = 0;
                                        code = FNONE;
                                        if (verbose > 1 && maybe_ATTRS_REPORT)
                                                rprintf(FCLIENT, "%s is uptodate\n", fname);