[patch] use mkstemp instead of mktemp.

Hans-Peter Nilsson hp@bitrange.com
Wed Jul 2 02:17:00 GMT 2003


On Tue, 1 Jul 2003, Muthukumar Ratty wrote:
> /backup/bleed/BINUTILS/src/binutils/bucomm.c:441: the use of `mktemp' is
> dangerous, better use `mkstemp'
>
> Let me know if the following is ok...

No it isn't:
<URL:http://sources.redhat.com/ml/binutils/2003-03/msg00219.html>.

This is turning into a FAQ, though infrequent enough that I
believe people may forget why.  Perhaps adding an obvious
comment at the mktemp call site would help.

brgds, H-P



More information about the Binutils mailing list