Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |