diff options
author | Tim Peters <tim.peters@gmail.com> | 2003-04-28 03:13:03 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2003-04-28 03:13:03 (GMT) |
commit | 5501b5e3d769e56d48722e97dd98f571ff128a54 (patch) | |
tree | 9099b46bc29cae35ba3bb834ef0ed9e6b28298d5 /Doc | |
parent | bf89b3a1f7937d7dbbcb2d739b3276c363631d9c (diff) | |
download | cpython-5501b5e3d769e56d48722e97dd98f571ff128a54.zip cpython-5501b5e3d769e56d48722e97dd98f571ff128a54.tar.gz cpython-5501b5e3d769e56d48722e97dd98f571ff128a54.tar.bz2 |
SF bug 728097: tmpnam problems on windows 2.3b, breaks test.test_os.
tmpnam() appears essentially useless on Windows, and it finally broke
the test for Irmen de Jong. Read the long new comment in test_tmpnam()
for details. Since the MS implementation is insane, it might be good
if we supplied a different implementation.
Bugfix candidate.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libos.tex | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/lib/libos.tex b/Doc/lib/libos.tex index c92aa4d..6a1223f 100644 --- a/Doc/lib/libos.tex +++ b/Doc/lib/libos.tex @@ -1025,7 +1025,11 @@ 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. +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} |