X-Git-Url: https://mattmccutchen.net/rsync/rsync-patches.git/blobdiff_plain/fc068916893d69f75d9eab25b5ebd46ed5341683..4db3c954ec3cad51048587cdded6ac4759adcef8:/early-checksum.diff diff --git a/early-checksum.diff b/early-checksum.diff index eb2c0ef..3fcbae6 100644 --- a/early-checksum.diff +++ b/early-checksum.diff @@ -17,14 +17,14 @@ To use this patch, run these commands for a successful build: --- old/flist.c +++ new/flist.c @@ -33,6 +33,7 @@ extern int am_sender; - extern int incremental; + extern int inc_recurse; extern int do_progress; extern int always_checksum; +extern int pre_checksum; extern int module_id; extern int ignore_errors; extern int numeric_ids; -@@ -847,6 +848,15 @@ static struct file_struct *recv_file_ent +@@ -850,6 +851,15 @@ static struct file_struct *recv_file_ent memcpy(bp, F_SUM(first), checksum_len); } else read_buf(f, bp, checksum_len); @@ -39,7 +39,7 @@ To use this patch, run these commands for a successful build: + } } - return file; + if (S_ISREG(mode) || S_ISLNK(mode)) --- old/generator.c +++ new/generator.c @@ -73,6 +73,7 @@ extern int protocol_version; @@ -118,7 +118,7 @@ To use this patch, run these commands for a successful build: int local_server = 0; int new_root_dir = 0; mode_t orig_umask = 0; -@@ -792,6 +796,7 @@ static void do_server_recv(int f_in, int +@@ -793,6 +797,7 @@ static void do_server_recv(int f_in, int struct file_list *flist; char *local_name = NULL; char *dir = NULL; @@ -126,7 +126,7 @@ To use this patch, run these commands for a successful build: int save_verbose = verbose; if (filesfrom_fd >= 0) { -@@ -838,6 +843,10 @@ static void do_server_recv(int f_in, int +@@ -839,6 +844,10 @@ static void do_server_recv(int f_in, int filesfrom_fd = -1; } @@ -137,7 +137,7 @@ To use this patch, run these commands for a successful build: flist = recv_file_list(f_in); if (!flist) { rprintf(FERROR,"server_recv: recv_file_list error\n"); -@@ -847,6 +856,9 @@ static void do_server_recv(int f_in, int +@@ -848,6 +857,9 @@ static void do_server_recv(int f_in, int recv_additional_file_list(f_in); verbose = save_verbose; @@ -147,7 +147,7 @@ To use this patch, run these commands for a successful build: if (argc > 0) local_name = get_local_name(flist,argv[0]); -@@ -926,6 +938,7 @@ int client_run(int f_in, int f_out, pid_ +@@ -927,6 +939,7 @@ int client_run(int f_in, int f_out, pid_ { struct file_list *flist = NULL; int exit_code = 0, exit_code2 = 0; @@ -155,7 +155,7 @@ To use this patch, run these commands for a successful build: char *local_name = NULL; cleanup_child_pid = pid; -@@ -1006,12 +1019,19 @@ int client_run(int f_in, int f_out, pid_ +@@ -1007,12 +1020,19 @@ int client_run(int f_in, int f_out, pid_ filesfrom_fd = -1; } @@ -166,7 +166,7 @@ To use this patch, run these commands for a successful build: if (write_batch && !am_server) start_write_batch(f_in); flist = recv_file_list(f_in); - if (incremental && file_total == 1) + if (inc_recurse && file_total == 1) recv_additional_file_list(f_in); + if (pre_checksum)