Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | SF patch #474590 -- RISC OS support | Guido van Rossum | 2001-10-24 | 1 | -1/+5 |
| | |||||
* | Search /tmp before /var/tmp and /usr/tmp -- this seems preferred. | Guido van Rossum | 2001-03-02 | 1 | -1/+1 |
| | | | | SF patch #404564, Gregor Hoffleit. | ||||
* | final round of __all__ lists (I hope) - skipped urllib2 because Moshe may be | Skip Montanaro | 2001-03-01 | 1 | -0/+2 |
| | | | | giving it a slight facelift | ||||
* | fix long line | Jeremy Hylton | 2001-02-19 | 1 | -1/+2 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2001-01-15 | 1 | -25/+25 |
| | |||||
* | Reverting a dumb experimental version I checked in by mistake. | Tim Peters | 2001-01-14 | 1 | -9/+2 |
| | |||||
* | SF bug 128713: type(mmap_object) blew up on Linux. | Tim Peters | 2001-01-14 | 1 | -2/+9 |
| | |||||
* | Guido found a brand new race in tempfile on Linux, due to Linux changing | Tim Peters | 2001-01-13 | 1 | -16/+31 |
| | | | | | | | | | | | | pid across threads (but in that case, it's still the same process, and so still sharing the "template" cache in tempfile.py). Repaired that, and added a new std test. On Linux, someone please run that standalone with more files and/or more threads; e.g., python lib/test/test_threadedtempfile.py -f 1000 -t 10 to run with 10 threads each creating (and deleting) 1000 temp files. | ||||
* | A variant of SF patch 103028 (Make tempfile.mktemp threadsafe). | Tim Peters | 2001-01-12 | 1 | -12/+45 |
| | | | | | | | Tested on Windows. Should be tested on Linux. Should also be tested on some platform without threads (I simulated that by making the "import thread" fail, but that's not the same as actually doing it!). | ||||
* | Patch by tg@FreeBSD.org to try /var/tmp first. | Guido van Rossum | 2000-08-29 | 1 | -1/+1 |
| | | | | This helps on 4.4BSD-based systems. | ||||
* | Security patch for Unix by Chris McDonough. | Guido van Rossum | 2000-04-24 | 1 | -7/+21 |
| | | | | | | This uses the same precautions when trying to find a temporary directory as when the actual tempfile is created (using O_CREAT and O_EXCL). On non-posix platforms, nothing is changed. | ||||
* | The third and final doc-string sweep by Ka-Ping Yee. | Guido van Rossum | 2000-02-04 | 1 | -8/+6 |
| | | | | | | | | The attached patches update the standard library so that all modules have docstrings beginning with one-line summaries. A new docstring was added to formatter. The docstring for os.py was updated to mention nt, os2, ce in addition to posix, dos, mac. | ||||
* | In class TemporaryFileWrapper, don't cache attributes of tpye int -- | Guido van Rossum | 1999-06-01 | 1 | -1/+2 |
| | | | | | | these happen to be 'closed' and 'softspace', which may change! Noted by Dave Ascher (with slightly different solution). | ||||
* | Improvement to the previous fix suggested by Thomas Bellman: if the | Guido van Rossum | 1998-10-24 | 1 | -2/+6 |
| | | | | | unlink() or fdopen() fail, close the file descriptor and re-raise the exception. | ||||
* | The TemporaryFile() function has a security leak -- because the | Guido van Rossum | 1998-10-24 | 1 | -5/+6 |
| | | | | | | | | | | | | | filenames generated are easily predictable, it is possible to trick an unsuspecting program into overwriting another file by creating a symbolic link with the predicted name. Fix this by using the low-level os.open() function with the O_EXCL flag and mode 0700. On non-Unix platforms, presumably there are no symbolic links so the problem doesn't exist. The explicit test for Unix (posix, actually) makes it possible to change the non-Unix logic to work without a try-except clause. The mktemp() file is as unsafe as ever. | ||||
* | Fix so that after a fork() -- on Unix only -- the template gets | Guido van Rossum | 1998-10-14 | 1 | -3/+9 |
| | | | | recalculated. | ||||
* | On the Mac, create the Temporary Items folder if it does not exist yet. | Guido van Rossum | 1998-04-28 | 1 | -1/+1 |
| | | | | (Jack) | ||||
* | When getcwd() doesn't exist or raises an exception, don't fail but | Guido van Rossum | 1998-04-09 | 1 | -1/+5 |
| | | | | | fall back to using os.curdir instead; if it is fine, don't use os.curdir at all. | ||||
* | Mass check-in after untabifying all files that need it. | Guido van Rossum | 1998-03-26 | 1 | -58/+58 |
| | |||||
* | Add new optional parameter 'suffix' (default ''), which is appended to | Guido van Rossum | 1997-12-19 | 1 | -10/+11 |
| | | | | the temporary file name. Also some minor formatting of Jim F's code. | ||||
* | On NT, use a better template, ~XXX- where XXX is os.getpid(). | Guido van Rossum | 1997-12-15 | 1 | -0/+2 |
| | |||||
* | Added TemporaryFile and wrapper class by Jim Fulton. | Guido van Rossum | 1997-08-12 | 1 | -2/+41 |
| | | | | Look in more env vars (for NT: TEMP, TMP). | ||||
* | (Jack:) Better MacOS support. | Guido van Rossum | 1997-04-11 | 1 | -0/+10 |
| | |||||
* | Attempt at Windows-NT compatibility. | Guido van Rossum | 1996-08-20 | 1 | -1/+4 |
| | |||||
* | Restore 1.3 behavior of gettempdir(): if tempdir is already set, believe it. | Guido van Rossum | 1996-08-08 | 1 | -0/+2 |
| | |||||
* | Be more careful about default temp dir | Guido van Rossum | 1996-05-28 | 1 | -10/+20 |
| | |||||
* | Mostly rewritten to be more flexible and more portable | Guido van Rossum | 1992-03-31 | 1 | -18/+41 |
| | | | | ./ | ||||
* | Use $TMPDIR if it is set in the environment. | Guido van Rossum | 1992-01-14 | 1 | -1/+6 |
| | |||||
* | Use 'global' instead of struct kludge. | Guido van Rossum | 1991-12-26 | 1 | -6/+5 |
| | |||||
* | New class syntax. | Guido van Rossum | 1991-12-26 | 1 | -1/+1 |
| | |||||
* | Initial revision | Guido van Rossum | 1991-11-12 | 1 | -0/+32 |