Commit bc512f0a authored by Rob Swindell's avatar Rob Swindell

Resolve race condition around temp directory creation

It's possible that isdir(temp_dir) will be false and then a mkpath()
call will fail because some other thread came in and crated the
directory at that very moment - so save errno if mkdir fails and
call isdir() again to double-check that the directory wasn't created
by someone else already.
parent 4016c0f3
Pipeline #148 passed with stage
in 9 minutes and 38 seconds