]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Clarified documentation of tempnam().
authorFred Drake <fdrake@acm.org>
Tue, 12 Nov 2002 22:07:48 +0000 (22:07 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 12 Nov 2002 22:07:48 +0000 (22:07 +0000)
Closes SF bug #635656.

Doc/lib/libos.tex

index 7aed6fb415a1a5523cf47decd21e9b999b2d9b96..af8871cda4c1f324dc6b9cd1f666922c55673274 100644 (file)
@@ -865,6 +865,10 @@ files if \var{dir} is omitted or \code{None}.  If given and not
 filename.  Applications are responsible for properly creating and
 managing files created using paths returned by \function{tempnam()};
 no automatic cleanup is provided.
+On \UNIX, the environment variable \envvar{TMPDIR} overrides
+\var{dir}, while on Windows the \envvar{TMP} is used.  The specific
+behavior of this function depends on the C library implementation;
+some aspects are underspecified in system documentation.
 \warning{Use of \function{tempnam()} is vulnerable to symlink attacks;
 consider using \function{tmpfile()} instead.}
 Availability: \UNIX, Windows.