diff options
author | Wayne Davison <wayned@samba.org> | 2008-03-16 17:50:28 -0700 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2008-03-16 17:50:28 -0700 |
commit | 022dec7aba633f8b4e40339d555cc7cae5399314 (patch) | |
tree | cba1233ef566e42566f9028b361f32d7d3de1998 /generator.c | |
parent | ddaef70cede8b8ed24b084b93208a2353745b1bd (diff) | |
download | rsync-022dec7aba633f8b4e40339d555cc7cae5399314.tar.gz |
Moved the --append check so that files that don't need to be transferred
still get their non-content attributes updated, and combining --append
with --hard-links will not prevent the discovery of unchanged files.
Diffstat (limited to 'generator.c')
-rw-r--r-- | generator.c | 7 |
1 files changed, 4 insertions, 3 deletions
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; |