(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)
commitd5907e80aef3248b3703b253d2806a4167c52fe8
treebcc62399423c1a83169f04c4745f750063f55a26
parent5ed8adaa2f8846c60d76716d540d935414a563f1
(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