We need to mention any change to a directory, not just a time change.
authorWayne Davison <wayned@samba.org>
Wed, 9 Mar 2005 04:00:20 +0000 (04:00 +0000)
committerWayne Davison <wayned@samba.org>
Wed, 9 Mar 2005 04:00:20 +0000 (04:00 +0000)
Yeah, this isn't very consistent with how files are treated, but it's
backward compatible.

log.c

diff --git a/log.c b/log.c
index 2a32129..412cae2 100644 (file)
--- a/log.c
+++ b/log.c
@@ -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);
 }