mirror of
https://github.com/python/cpython.git
synced 2025-11-02 19:12:55 +00:00
parent
cab94a19f6
commit
4b9ed2f346
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
filename. Applications are responsible for properly creating and
|
||||||
managing files created using paths returned by \function{tempnam()};
|
managing files created using paths returned by \function{tempnam()};
|
||||||
no automatic cleanup is provided.
|
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;
|
\warning{Use of \function{tempnam()} is vulnerable to symlink attacks;
|
||||||
consider using \function{tmpfile()} instead.}
|
consider using \function{tmpfile()} instead.}
|
||||||
Availability: \UNIX, Windows.
|
Availability: \UNIX, Windows.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue