[Top][All Lists]

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

Re: Use of `mktemp' is dangerous, better use `mkstemp'...

From: Chet Ramey
Subject: Re: Use of `mktemp' is dangerous, better use `mkstemp'...
Date: Mon, 18 Jan 2021 14:05:19 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.6.1

On 1/17/21 7:46 PM, Ángel wrote:

[Explanation of when is mktemp() used and patch to remove the

The warning can be ignored.

Sure. However, actually removing the spurious warning would not only
make (some) build systems happier, but also produce less confused
users, so it seemed (potentially) valuable.

I understand. I have a problem with changing perfectly valid code that
serves its intended purpose to satisfy an invalid warning.

It's the 80-20 rule: I'm sure that this warning is valid 80% of the time
or more. I'd like a way to turn it off for the other 20%, where this case


``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

reply via email to

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