This is the mail archive of the
mailing list for the glibc project.
Re: tmpnam v mkstemp
- To: Neale dot Ferguson at softwareAG-usa dot com
- Subject: Re: tmpnam v mkstemp
- From: Geoff Keating <geoffk at geoffk dot org>
- Date: Sat, 11 Nov 2000 13:47:20 -0800
- CC: libc-alpha at sources dot redhat dot com
- References: <200011112123.NAA29769@cygnus.com>
- Reply-to: Geoff Keating <geoffk at redhat dot com>
> From: Neale.Ferguson@softwareAG-usa.com
> Date: Sat, 11 Nov 2000 16:21:43 +0200
> What is the nature of the warning issued:
> xxxxxxxxx.so: the use of `tmpnam' is dangerous, better use `mkstemp'
It is a libc link-time warning. I think the meaning of the warning is
clear. The warning is because use of tmpnam() can allow another user
to overwrite files owned by the user running tmpnam() even if the
other user cannot write to those files.
- Geoffrey Keating <firstname.lastname@example.org>