From: Michael Haggerty Date: Sun, 22 Dec 2013 07:14:06 GMT Subject: [PATCH 0/5] Fix two mkdir/rmdir races Message-ID: <1387696451-32224-1-git-send-email-mhagger@alum.mit.edu> 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