]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
For --inplace over protocol-version 29 or greater, tell the
authorWayne Davison <wayned@samba.org>
Mon, 17 Jan 2005 23:11:05 +0000 (23:11 +0000)
committerWayne Davison <wayned@samba.org>
Mon, 17 Jan 2005 23:11:05 +0000 (23:11 +0000)
sender what kind of a basis file we've selected.

generator.c

index 1c08e5e0e483c56f56a9f4c546c24750fb6dc9ae..5d051580aa199667b771fb70804892d35b51fcd7 100644 (file)
@@ -596,6 +596,8 @@ prepare_to_open:
 
 notify_others:
        write_int(f_out, i);
+       if (protocol_version >= 29 && inplace && !read_batch)
+               write_byte(f_out, fnamecmp_type);
        if (f_out_name >= 0)
                write_byte(f_out_name, fnamecmp_type);