(make_dir): New function, factored out of make_path.
authorJim Meyering <jim@meyering.net>
Sat, 2 Jan 1999 05:16:57 +0000 (05:16 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 2 Jan 1999 05:16:57 +0000 (05:16 +0000)
commitdd8aa60346fc93beac5077d9a4e3a5b281df9085
tree6e23e37fcfabe9fb886049a29dcd7b6de41a2375
parent024e00dc5ac2b025d28dffa04585c95a4c6f4cc8
(make_dir): New function, factored out of make_path.
(make_path): Use make_dir rather than open-coding it twice.
This effectively reverses the order of the latter pair of stat/mkdir
calls and fixes a race condition bug whereby one of two concurrent
`mkdir -p' processes could fail with EEXIST.
lib/makepath.c