This is the mail archive of the libc-alpha@cygnus.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]

Why doesn't tmpfile() honor $TMPDIR?


In stdio-common/tmpfile{,64}.c, __path_search is called with the 
fifth argument set to 0, which causes tmpfile(), and tmpfile64() to 
use P_tmpdir.

Is there a particular reason why tmpfile() and tmpfile64() should not 
be changed to call __path_search with the fifth argument set to 1, so 
that the functions do honor $TMPDIR?

I am asking because there is a long-standing bug 
(http://www.debian.org/Bugs/db/12/12240.html) in the Debian Bug 
Tracking System regarding this.
-- 
Joel Klecker (aka Espy)       <URL:mailto:espy@debian.org>
Debian GNU/Linux Package Maintainer for the GNU C Library.


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