X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/513fd04d21228519b58fbf10a077a0ff8f6be785..e50e82ab40045e8aae0c27f9e39c4f6b2d22b3f7:/generator.c diff --git a/generator.c b/generator.c index a1e56630..deefff4e 100644 --- a/generator.c +++ b/generator.c @@ -282,7 +282,8 @@ static void do_delete_pass(struct file_list *flist) char fbuf[MAXPATHLEN]; int j; - if (dry_run > 1) /* destination doesn't exist yet */ + if (dry_run > 1 /* destination doesn't exist yet */ + || list_only) return; for (j = 0; j < flist->count; j++) { @@ -726,16 +727,6 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx, return; } - if (max_size && file->length > max_size) { - if (verbose > 1) { - if (the_file_list->count == 1) - fname = f_name(file); - rprintf(FINFO, "%s is over max-size\n", - safe_fname(fname)); - } - return; - } - if (preserve_links && S_ISLNK(file->mode)) { #ifdef SUPPORT_LINKS if (safe_symlinks && unsafe_symlink(file->u.link, fname)) { @@ -847,6 +838,16 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx, return; } + if (max_size && file->length > max_size) { + if (verbose > 1) { + if (the_file_list->count == 1) + fname = f_name(file); + rprintf(FINFO, "%s is over max-size\n", + safe_fname(fname)); + } + return; + } + if (opt_ignore_existing && statret == 0) { if (verbose > 1) rprintf(FINFO, "%s exists\n", safe_fname(fname));