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]

Re: Why doesn't tmpfile() honor $TMPDIR?


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   `------------------------


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