This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/4588] New: behavior of __path_search / tempnam() with regard to writable TMPDIR
- From: "schizo at debian dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 3 Jun 2007 17:20:50 -0000
- Subject: [Bug libc/4588] New: behavior of __path_search / tempnam() with regard to writable TMPDIR
- Reply-to: sourceware-bugzilla at sourceware dot org
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.