(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)
commitcb1d4eb4f2ca94e74ebbf9ff42557ac40fceb000
tree67b37a6bba20f3795f8105f44e9a9773546bf37f
parent45ed22a319507209f8a9b74bf8454577aa430c76
(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