Hi, I’m still educating myself about concurrency and race conditions, so I hope my naïve question won’t be just a waste of time. Here it is: > http://hg.python.org/cpython/rev/0c8bc3a0130a > user: Senthil Kumaran <orsenthil at gmail.com> > summary: > Fix closes issue10761: tarfile.extractall failure when symlinked files are present. > diff --git a/Lib/tarfile.py b/Lib/tarfile.py > --- a/Lib/tarfile.py > +++ b/Lib/tarfile.py > @@ -2239,6 +2239,8 @@ > if hasattr(os, "symlink") and hasattr(os, "link"): > # For systems that support symbolic and hard links. > if tarinfo.issym(): > + if os.path.exists(targetpath): > + os.unlink(targetpath) Is there a race condition here? Thanks Regards
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4