Made itemize() output the fnamecmp_type and the fuzzy name based on
[rsync/rsync.git] / log.c
diff --git a/log.c b/log.c
index 2a32129..855fb73 100644 (file)
--- a/log.c
+++ b/log.c
@@ -438,8 +438,8 @@ static void log_formatted(enum logcode code, char *format, char *op,
                                break;
                        }
                        n = buf2;
-                       n[0] = iflags & ITEM_HARD_LINKED ? 'h'
-                            : iflags & ITEM_LOCAL_CHANGE ? 'c'
+                       n[0] = iflags & ITEM_LOCAL_CHANGE
+                             ? iflags & ITEM_XNAME_FOLLOWS ? 'h' : 'c'
                             : !(iflags & ITEM_TRANSFER) ? '.'
                             : *op == 's' ? '>' : '<';
                        n[1] = S_ISDIR(file->mode) ? 'd'
@@ -533,7 +533,7 @@ void maybe_log_item(struct file_struct *file, int iflags, int itemizing,
                if (am_daemon && !dry_run && see_item)
                        log_item(file, &stats, iflags, buf);
        } else if (see_item || iflags & ITEM_LOCAL_CHANGE || *buf
-           || (S_ISDIR(file->mode) && iflags & ITEM_REPORT_TIME))
+           || (S_ISDIR(file->mode) && iflags & SIGNIFICANT_ITEM_FLAGS))
                log_item(file, &stats, iflags, buf);
 }