- if (itemizing) {
- itemize(file, statret, &st,
- fnamecmp_type == FNAMECMP_FNAME
- ? 0 : SID_NO_DEST_AND_NO_UPDATE,
+ if (fnamecmp_type == FNAMECMP_FNAME) {
+ if (itemizing)
+ itemize(file, statret, &st, 0, f_out, ndx);
+ set_perms(fname, file, &st, maybe_PERMS_REPORT);
+ return;
+ }
+ /* Only --compare-dest gets here. */
+ if (unchanged_attrs(file, &st)) {
+ itemize(file, statret, &st, ITEM_NO_DEST_AND_NO_UPDATE,