`mkdir -p' would create parent directories with permissions
authorJim Meyering <jim@meyering.net>
Tue, 31 Oct 2000 19:25:50 +0000 (19:25 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 31 Oct 2000 19:25:50 +0000 (19:25 +0000)
commitc8da0cbba68139e51a274039e126d443d4eababf
tree763797695f7df69a57c215de877878fa146802d1
parent575f5c2f24466f77133993f62aeef5c54f0cfefb
`mkdir -p' would create parent directories with permissions
that did not account for the umask. [introduced with the
2000-09-30 change that became part of fileutils-4.0.28]

Include dirname.h.
Compute the parent directory `mode' unconditionally, effectively
as `$(umask -S),u+wx'.
Use make_path to create only the parent directories, thus using
the same code, both with and without -p, to create the final
component in each file name.  Reported by Bob Proulx.
src/mkdir.c