Files with the same size should also be skipped by --append.
authorWayne Davison <wayned@samba.org>
Wed, 1 Aug 2007 22:47:36 +0000 (22:47 +0000)
committerWayne Davison <wayned@samba.org>
Wed, 1 Aug 2007 22:47:36 +0000 (22:47 +0000)
generator.c

index 8ee5a09..5f04293 100644 (file)
@@ -1578,7 +1578,7 @@ 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))
+       if (append_mode > 0 && sx.st.st_size >= F_LENGTH(file))
                goto cleanup;
 
        if (fnamecmp_type <= FNAMECMP_BASIS_DIR_HIGH)