There seem to be a lot of mkdir/rmdir races in the Git code. Fix two of them. It is hard to construct test cases for races without a lot of extra test infrastructure. So I have tested them as best I can using instrumented code (not included here). Michael Haggerty (5): safe_create_leading_directories(): modernize format of "if" chaining safe_create_leading_directories(): reduce scope of local variable safe_create_leading_directories(): add "slash" pointer safe_create_leading_directories(): fix a mkdir/rmdir race rename_ref(): fix a mkdir()/rmdir() race refs.c | 10 +++++++++- sha1_file.c | 56 +++++++++++++++++++++++++++++++++----------------------- 2 files changed, 42 insertions(+), 24 deletions(-) -- 1.8.5.1 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html