Complain if a feature that requires protocol 29 doesn't get it.
[rsync/rsync.git] / log.c
diff --git a/log.c b/log.c
index 35da9e1..412cae2 100644 (file)
--- a/log.c
+++ b/log.c
@@ -71,8 +71,9 @@ struct {
        { RERR_TIMEOUT    , "timeout in data send/receive" },
        { RERR_CMD_FAILED , "remote shell failed" },
        { RERR_CMD_KILLED , "remote shell killed" },
-       { RERR_CMD_RUN,     "remote command could not be run" },
-       { RERR_CMD_NOTFOUND, "remote command not found" },
+       { RERR_CMD_RUN    , "remote command could not be run" },
+       { RERR_CMD_NOTFOUND,"remote command not found" },
+       { RERR_DEL_LIMIT  , "--max-delete limit stopped deletions" },
        { 0, NULL }
 };
 
@@ -532,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);
 }