Why doesn't tmpfile() honor $TMPDIR?
Ulrich Drepper
drepper@cygnus.com
Thu Apr 29 12:26:00 GMT 1999
Joel Klecker <espy@debian.org> writes:
> 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?
Yes:
- compatibility with other systems and earlier versions
- newly introduced security risks
> 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.
This is no bug in glibc.
--
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com `------------------------
More information about the Libc-alpha
mailing list