<div dir="ltr"><div dir="ltr">On Fri, Nov 8, 2019 at 8:00 AM Ciprian Dorin Craciun via rsync <<a href="mailto:rsync@lists.samba.org">rsync@lists.samba.org</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Therefore I've tried to patch `rsync` myself, mainly by copy-pasting the code related to `pre-xfer exec` option:<br><a href="https://github.com/cipriancraciun/rsync/commit/1f85c5f596542ed878d09a60e55ea0279346802b" rel="noreferrer" target="_blank">https://github.com/cipriancraciun/rsync/commit/1f85c5f596542ed878d09a60e55ea0279346802b</a></blockquote><div><br></div><div>Thanks for the patch, and sorry for the slow response!  I took your idea and tweaked it into an "early exec" daemon parameter that runs at the same spot that your "bootstrap exec" ran.  My resulting version also has the code for early & pre-xfer reorganized a bit into functions that both the before-transfer execs can share, and I managed to fix a couple minor issues that I noticed along the way (such as the RSYNC_PID environment variable not matching between the pre & post exec funcs).</div><div><br></div><div>..wayne..</div></div></div>