(make_dir): When reporting a mkdir failure and the
authorJim Meyering <jim@meyering.net>
Thu, 6 May 1999 02:10:34 +0000 (02:10 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 6 May 1999 02:10:34 +0000 (02:10 +0000)
commita4407423303cfae0250513c78be2444521938854
tree13403674e903daaf3e537ed0ff45a4eda43a10e1
parentf466b6448a2a4ee2060f2b3b52a1b9d4ac8ecf50
(make_dir): When reporting a mkdir failure and the
target cannot be `stat'ed, use the errno from the failed mkdir call,
not the one from the stat call.  Before this change, running
`mkdir -p /no-dir/no-dir' as an unprivileged user would wrongly
elicit `No such file or directory' instead of `Permission denied'.
lib/makepath.c