This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: tmpnam v mkstemp


> 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 <geoffk@geoffk.org>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]