[issue9281] Race condition in distutils.dir_util.mkpath

2014-03-12 Thread Éric Araujo
Changes by Éric Araujo : -- 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: +Python 2.7, Pyth

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

2010-10-27 Thread Éric Araujo
Éric Araujo 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 _

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

2010-10-27 Thread Dirkjan Ochtman
Dirkjan Ochtman added the comment: Still, shouldn't this also be fixed in 2.7? -- nosy: +djc ___ Python tracker ___ ___ Python-bugs-li

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

2010-10-03 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis 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 added the comment: instead of waiting for user reports* -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

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

2010-07-17 Thread Éric Araujo
Éric Araujo 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. Thanks for the heads-u

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

2010-07-16 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis : 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() check and call to os.mkdi