This is the mail archive of the
libc-alpha@cygnus.com
mailing list for the glibc project.
Why doesn't tmpfile() honor $TMPDIR?
- To: libc-alpha@cygnus.com
- Subject: Why doesn't tmpfile() honor $TMPDIR?
- From: Joel Klecker <espy@debian.org>
- Date: Sat, 24 Apr 1999 14:00:32 -0700
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.