On Thu, 25 Apr 2019 14:59:37 +0200, Martijn van Duren wrote:

> The fchmod line was added by deraadt@ in r1.5 back in 1998, based on
> std conformance mentioned by [email protected]. The texts that
> I've consulted didn't mention anything about permission sets on the
> file and unlinking the file immediately after creation doesn't allow
> other applications to open it again (as far as I'm aware).
> Unfortunately I can't find the original conversation, so I don't know
> what I'm missing here.

After reviewing the standard, it now contains the following:

    implementations may restrict the permissions, either by clearing
    the file mode bits or setting them to the value S_IRUSR | S_IWUSR.

So your diff is OK millert@

 - todd

Reply via email to