X-Git-Url: https://mattmccutchen.net/rsync/rsync-patches.git/blobdiff_plain/ccc3a12c4acb834dc3bc0503364958a66e9ca2f4..a94141d9fb91e0f615d8c888217e451904c7898e:/source-filter_dest-filter.diff diff --git a/source-filter_dest-filter.diff b/source-filter_dest-filter.diff index 9b74fde..394905e 100644 --- a/source-filter_dest-filter.diff +++ b/source-filter_dest-filter.diff @@ -48,6 +48,17 @@ After applying this patch, run these commands for a successful build: return 0; /* if always checksum is set then we use the checksum instead +--- old/main.c ++++ new/main.c +@@ -110,7 +110,7 @@ pid_t wait_process(pid_t pid, int *statu + } + + /* Wait for a process to exit, calling io_flush while waiting. */ +-static void wait_process_with_flush(pid_t pid, int *exit_code_ptr) ++void wait_process_with_flush(pid_t pid, int *exit_code_ptr) + { + pid_t waited_pid; + int status; --- old/options.c +++ new/options.c @@ -99,6 +99,7 @@ int keep_partial = 0; @@ -283,7 +294,7 @@ After applying this patch, run these commands for a successful build: + if (dest_filter) { + int status; -+ wait_process(pid, &status); ++ wait_process_with_flush(pid, &status); + if (status != 0) { + rprintf(FERROR, "filter %s exited code: %d\n", + dest_filter, status); @@ -420,7 +431,7 @@ After applying this patch, run these commands for a successful build: + pid_t pid = run_filter_on_file(filter_argv, fd2, fd); + close(fd); + close(fd2); -+ wait_process(pid, &status); ++ wait_process_with_flush(pid, &status); + if (status != 0) { + rprintf(FERROR, + "bypassing source filter %s; exited with code: %d\n",