X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/ddaef70cede8b8ed24b084b93208a2353745b1bd..022dec7aba633f8b4e40339d555cc7cae5399314:/generator.c diff --git a/generator.c b/generator.c index 909c0f4d..e189dddd 100644 --- a/generator.c +++ b/generator.c @@ -1743,9 +1743,6 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx, goto cleanup; } - if (append_mode > 0 && sx.st.st_size >= F_LENGTH(file)) - goto cleanup; - if (fnamecmp_type <= FNAMECMP_BASIS_DIR_HIGH) ; else if (fnamecmp_type == FNAMECMP_FUZZY) @@ -1770,6 +1767,10 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx, goto cleanup; } + if (append_mode > 0 && sx.st.st_size >= F_LENGTH(file)) { + goto cleanup; + } + prepare_to_open: if (partialptr) { sx.st = partial_st;