summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2002-11-12 22:07:11 (GMT)
committerFred Drake <fdrake@acm.org>2002-11-12 22:07:11 (GMT)
commit4b9ed2f346921353b34a99332d9efd6ddce3a28b (patch)
treed47f6846f840b8a964cef2f8b833664ece531fd0
parentcab94a19f660ce2204792dbe6f95cc0ac3892678 (diff)
downloadcpython-4b9ed2f346921353b34a99332d9efd6ddce3a28b.zip
cpython-4b9ed2f346921353b34a99332d9efd6ddce3a28b.tar.gz
cpython-4b9ed2f346921353b34a99332d9efd6ddce3a28b.tar.bz2
Clarified documentation of tempnam().
Closes SF bug #635656.
-rw-r--r--Doc/lib/libos.tex4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/lib/libos.tex b/Doc/lib/libos.tex
index bc935b2..cf68f60 100644
--- a/Doc/lib/libos.tex
+++ b/Doc/lib/libos.tex
@@ -972,6 +972,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.