[Python-checkins] python/dist/src/Doc/lib libos.tex,1.121,1.122

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Sun, 27 Apr 2003 20:13:05 -0700


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv2879/python/Doc/lib

Modified Files:
	libos.tex 
Log Message:
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.


Index: libos.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libos.tex,v
retrieving revision 1.121
retrieving revision 1.122
diff -C2 -d -r1.121 -r1.122
*** libos.tex	28 Apr 2003 02:09:43 -0000	1.121
--- libos.tex	28 Apr 2003 03:13:02 -0000	1.122
***************
*** 1026,1030 ****
  \warning{Use of \function{tmpnam()} is vulnerable to symlink attacks;
  consider using \function{tmpfile()} instead.}
! Availability: \UNIX, Windows.
  \end{funcdesc}
  
--- 1026,1034 ----
  \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).
  \end{funcdesc}