From: Georg Brandl Date: Sat, 25 Jun 2005 20:44:12 +0000 (+0000) Subject: backport bug [ 1186072 ] tempnam doc doesn't include link to tmpfile X-Git-Tag: v2.4.2c1~168 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7cb2ec1e7b0f33601a01a1f854e064776b01fac1;p=thirdparty%2FPython%2Fcpython.git backport bug [ 1186072 ] tempnam doc doesn't include link to tmpfile --- diff --git a/Doc/lib/libos.tex b/Doc/lib/libos.tex index 338476370a7f..24729754ed1b 100644 --- a/Doc/lib/libos.tex +++ b/Doc/lib/libos.tex @@ -1078,8 +1078,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}{} @@ -1090,12 +1090,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}