[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mkstemp

From: Reuben Thomas
Subject: Re: mkstemp
Date: Wed, 27 Apr 2011 14:52:41 +0100

On 27 April 2011 14:00, Eric Blake <address@hidden> wrote:
> On 04/27/2011 04:05 AM, Reuben Thomas wrote:
>> On 27 April 2011 03:24, Bruno Haible <address@hidden> wrote:
>>>> Does setting a 0600 umask (as glibc does) sound like a good thing to
>>>> add to the mkstemp-safer functions?
> Setting umask() is bad for other reasons - it is global state,

I was being sloppy with my terminology, I meant of course file permissions.

> The
> hardest part now is writing the m4 test to detect platforms whose
> mkstemp is insecure.

Attached, a patch. I don't have a non-GNU system on which to test it;
I can only confirm that it works on GNU/Linux (which doesn't prove
anything really).


Attachment: 0002-Use-gnulib-s-mkstemp-if-the-system-implementation-is.patch
Description: Binary data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]