[Bug libc/4588] New: behavior of __path_search / tempnam() with regard to writable TMPDIR
schizo at debian dot org
sourceware-bugzilla@sourceware.org
Sun Jun 3 17:21:00 GMT 2007
The comment in stdio-common/tempnam.c says that tempnam() validates the
writability of TMPDIR. In realiy, __path_search just checks to see if the
directory exists. Should the behavior actually conform to the comment, or
vice-versa?
/* Generate a unique temporary filename using up to five characters of PFX
if it is not NULL. The directory to put this file in is searched for
as follows: First the environment variable "TMPDIR" is checked.
If it contains the name of a writable directory, that directory is used.
If not and if DIR is not NULL, that value is checked. If that fails,
P_tmpdir is tried and finally "/tmp". The storage for the filename
is allocated by `malloc'. */
--
Summary: behavior of __path_search / tempnam() with regard to
writable TMPDIR
Product: glibc
Version: 2.4
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: schizo at debian dot org
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=4588
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the Glibc-bugs
mailing list