On Wed, Nov 24, 2021 at 04:20:12PM +0100, Thorsten Schöning wrote: > Guten Tag Stefan Sperling, > am Mittwoch, 24. November 2021 um 13:33 schrieben Sie: > > > This will be due to apr_file_mktemp() using default permissions > > on a freshly created temporary file. The committed file is run > > through translation (for keywords, newlines, and such) which > > involves a temporary file that gets reinstalled into the working copy. > > Is there any way to avoid that temporary file at all? I don't use > keywords and the newlines are as expected. Can e.g. the eol-property > or some other be set in a way to avoid all translations?
I don't know. I have told you all I could figure out by skimming the code, and I don't have time to dive into more details. If a workaround is not enough for your needs, then someone else (not me) can study the libsvn_wc code in detail to figure out a proper solution. There is a function in libsvn_subr/io.c which copies unix perms from one file to another. This function is already being used in places. Perhaps a call to this function is missing from the commit code path such that permissions of files installed after committing them will be preserved. Cheers, Stefan
