Subject: bug#12947: [[email-masked]: Bug#598018: install: temporary insecure file permissions]

From: Paul Eggert <[email-masked]>
Date: Wed, 21 Nov 2012 07:41:42 -0800

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).