The manual page for tmpfile(), which is shared with tmpnam() and tempnam(), describes how tmpfile() respects the TMPDIR environment variable. It then later on says: TMPDIR [tempnam() only] If set, the directory in which the temporary file is stored. TMPDIR is ignored for processes for which issetugid(2) is true. Well, if tmpfile() respects TMPDIR then why does it say it doesn't? Especially since it already went to the trouble of saying it did. How-To-Repeat: man tmpfile Scratch head and then check source. While I'm on the subject, it may be a good idea to change the description to state that at least some of these functions are part of POSIX. Or, perhaps just remove the line that states: These interfaces are provided from System V and ANSI compatibility only.
Responsible Changed From-To: freebsd-bugs->freebsd-doc reclassify.
For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped
A commit references this bug: Author: gbe Date: Fri Aug 7 16:20:07 UTC 2020 New revision: 364029 URL: https://svnweb.freebsd.org/changeset/base/364029 Log: tmpnam(3): Also mention tmpfile in the ENVIRONMENT section PR: 181785 Submitted by: Kevin P. Neal <kpneal atpobox dot com> MFC after: 1 week Changes: head/lib/libc/stdio/tmpnam.3
Committed, thanks for the patch!
A commit references this bug: Author: gbe Date: Fri Aug 14 06:48:30 UTC 2020 New revision: 364231 URL: https://svnweb.freebsd.org/changeset/base/364231 Log: MFC r364029: tmpnam(3): Also mention tmpfile in the ENVIRONMENT section PR: 181785 Submitted by: Kevin P. Neal <kpneal at pobox dot com> Changes: _U stable/12/ stable/12/lib/libc/stdio/tmpnam.3