X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/de8c8b28c03d5e0d4d745f804aef781cd276c379..411c04f06fa26642c6bfc29fd70128e3f870a455:/generator.c diff --git a/generator.c b/generator.c index 407a83f5..8ee5a09c 100644 --- a/generator.c +++ b/generator.c @@ -1761,15 +1761,15 @@ static void touch_up_dirs(struct file_list *flist, int ndx) * transfer and/or re-set any tweaked modified-time values. */ for (i = start; i <= end; i++, counter++) { file = flist->files[i]; + if (!S_ISDIR(file->mode)) + continue; if (verbose > 3) { fname = f_name(file, NULL); rprintf(FINFO, "touch_up_dirs: %s (%d)\n", NS(fname), i); } - if (!F_IS_ACTIVE(file) || !S_ISDIR(file->mode) - || file->flags & FLAG_MISSING_DIR) - continue; - if (!need_retouch_dir_times && file->mode & S_IWUSR) + if (!F_IS_ACTIVE(file) || file->flags & FLAG_MISSING_DIR + || (!need_retouch_dir_times && file->mode & S_IWUSR)) continue; fname = f_name(file, NULL); if (!(file->mode & S_IWUSR))