diff options
author | Georg Brandl <georg@python.org> | 2005-06-25 20:44:10 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2005-06-25 20:44:10 (GMT) |
commit | 6df3fd379047e33a0ed09c030f2fc96a1c4f569c (patch) | |
tree | 418e86af13ee847f6c4fadcaaf2365e6082d0f43 /Doc/lib | |
parent | e21d9ab342a51dc1a45869157dcc7136edc60ab4 (diff) | |
download | cpython-6df3fd379047e33a0ed09c030f2fc96a1c4f569c.zip cpython-6df3fd379047e33a0ed09c030f2fc96a1c4f569c.tar.gz cpython-6df3fd379047e33a0ed09c030f2fc96a1c4f569c.tar.bz2 |
bug [ 1186072 ] tempnam doc doesn't include link to tmpfile
Diffstat (limited to 'Doc/lib')
-rw-r--r-- | Doc/lib/libos.tex | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/Doc/lib/libos.tex b/Doc/lib/libos.tex index 6bf22d8..a6496a8 100644 --- a/Doc/lib/libos.tex +++ b/Doc/lib/libos.tex @@ -1101,8 +1101,8 @@ On \UNIX, the environment variable \envvar{TMPDIR} overrides 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: Macintosh, \UNIX, Windows. +consider using \function{tmpfile()} (section \ref{os-newstreams}) +instead.} Availability: Macintosh, \UNIX, Windows. \end{funcdesc} \begin{funcdesc}{tmpnam}{} @@ -1113,12 +1113,13 @@ responsible for properly creating and managing files created using paths returned by \function{tmpnam()}; no automatic cleanup is provided. \warning{Use of \function{tmpnam()} is vulnerable to symlink attacks; -consider using \function{tmpfile()} instead.} -Availability: \UNIX, Windows. This function probably shouldn't be used -on Windows, though: Microsoft's implementation of \function{tmpnam()} -always creates a name in the root directory of the current drive, and -that's generally a poor location for a temp file (depending on -privileges, you may not even be able to open a file using this name). +consider using \function{tmpfile()} (section \ref{os-newstreams}) +instead.} Availability: \UNIX, Windows. This function probably +shouldn't be used on Windows, though: Microsoft's implementation of +\function{tmpnam()} always creates a name in the root directory of the +current drive, and that's generally a poor location for a temp file +(depending on privileges, you may not even be able to open a file +using this name). \end{funcdesc} \begin{datadesc}{TMP_MAX} |