On 11/21/2012 02:27 AM, Bernhard Voelker wrote: > Why aren't we using fchown and > fchmod_or_lchmod before the close() call?
The code used to do that, if memory serves, but then the code was modified to deal with ACLs or SELinux or whatever and it turned into a big mess, which I've been afraid to deal with. I vaguely recall that it had something to do with the relevant ACL and/or SELinux calls requiring file names (which seemed like a huge mistake to me at the time).