- iflags |= ITEM_IS_NEW;
- if (statret >= 0 && !(sflags & SID_NO_DEST_AND_NO_UPDATE)) {
- int keep_time = !preserve_times ? 0
- : S_ISDIR(file->mode) ? !omit_dir_times : !S_ISLNK(file->mode);
-
- if ((iflags & ITEM_UPDATING && !keep_time)
- || (keep_time && file->modtime != st->st_mtime))
- iflags |= ITEM_REPORT_TIME;
- if (preserve_perms && file->mode != st->st_mode)
- iflags |= ITEM_REPORT_PERMS;
- if (preserve_uid && am_root && file->uid != st->st_uid)
- iflags |= ITEM_REPORT_OWNER;
- if (preserve_gid && file->gid != GID_NONE && st->st_gid != file->gid)
- iflags |= ITEM_REPORT_GROUP;
- }
-
- if (iflags && !read_batch) {
- if (ndx >= 0)
- write_int(f_out, ndx);
- write_byte(f_out, iflags);
+ iflags |= ITEM_IS_NEW | ITEM_UPDATING;
+
+ if ((iflags || verbose > 1) && !read_batch) {
+ if (protocol_version >= 29) {
+ if (ndx >= 0)
+ write_int(f_out, ndx);
+ write_shortint(f_out, iflags);
+ } else if (ndx >= 0)
+ log_recv(file, &stats, iflags);