commit | bf79c6618e4f51467e1d8e73915a541df660a060 | [log] [tgz] |
---|---|---|
author | David James <davidjames@google.com> | Thu Dec 26 14:20:13 2013 -0800 |
committer | David James <davidjames@google.com> | Thu Dec 26 14:59:00 2013 -0800 |
tree | 0a27f673b1bccdd9fac1478e078dedd4a629aa7a | |
parent | f045d49a71b64b854589c8821d8bf220c6ed9fd3 [diff] |
Fix os.mkdir race condition. This code checks whether a dir exists before creating it. In between the check and the mkdir call, it is possible that another process will have created the directory. We have seen this bug occur many times in practice during our 'repo init' tests. Change-Id: Ia47d39955739aa38fd303f4e90be7b4c50d9d4ba