[issue9281] Race condition in distutils.dir_util.mkpath

2014-03-12 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- components: +Distutils -Distutils2 resolution: accepted - fixed stage: needs patch - committed/rejected status: open - closed title: Race condition with mkdir/makedirs in distutils2 - Race condition in distutils.dir_util.mkpath versions:

[issue9281] Race condition in distutils.dir_util.mkpath()

2010-10-27 Thread Dirkjan Ochtman
Dirkjan Ochtman dirk...@ochtman.nl added the comment: Still, shouldn't this also be fixed in 2.7? -- nosy: +djc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9281 ___

[issue9281] Race condition in distutils.dir_util.mkpath()

2010-10-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Yes, it should, that’s why the versions field lists 2.7 too. I’ll get to this in some days. -- assignee: tarek - eric.araujo status: open - pending ___ Python tracker rep...@bugs.python.org

[issue9281] Race condition in distutils.dir_util.mkpath()

2010-10-03 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: I'm attaching the patch for some mkpath functions in distutils2. -- components: +Distutils2 versions: +3rd party -Python 2.6 Added file: http://bugs.python.org/file19119/distutils2-mkpath.patch

[issue9281] Race condition in distutils.dir_util.mkpath()

2010-07-17 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Note: Your patch fixes distutils, but in distutils2 dir_util is gone, use of its functions replaced by shutil calls or duplicated code with, I’m afraid, the same isdir/mkdir race condition. I wonder how we could add tests for that instead.

[issue9281] Race condition in distutils.dir_util.mkpath()

2010-07-17 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: instead of waiting for user reports* -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9281 ___

[issue9281] Race condition in distutils.dir_util.mkpath()

2010-07-16 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: distutils.dir_util.mkpath() is used to create a directory and is supposed to not fail when this directory already exists. There's a chance that another process will create this directory between os.path.isdir()