ee7f3a601a
- If mkdir() fails on a component (no matter what the error is), stat() the result. If the stat() fails, print the error mkdir() generated. Otherwise, if the result is not a directory, explicitly fail with ENOTDIR. - Move the chmod() of last element to be done only if the mkdir() succeeded (i.e, it wasn't an existing directory) Fixes problem introduced in previous commit where "mkdir -p existing" on a read-only file system would incorrectly return a non zero exit code, whilst retaining the race-condition fix of the previous commit. Thanks to simonb@ for sanity checking my fix versus the standards. |
||
---|---|---|
bin | ||
crypto | ||
dist | ||
distrib | ||
doc | ||
etc | ||
games | ||
gnu | ||
include | ||
lib | ||
libexec | ||
regress | ||
rescue | ||
sbin | ||
share | ||
sys | ||
tools | ||
usr.bin | ||
usr.sbin | ||
build.sh | ||
BUILDING | ||
Makefile | ||
Makefile.inc | ||
UPDATING |