]> git.ipfire.org Git - thirdparty/coreutils.git/commit
A command like `mkdir -p nonexistent/.' would create the
authorJim Meyering <jim@meyering.net>
Mon, 24 Oct 2005 10:03:47 +0000 (10:03 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 24 Oct 2005 10:03:47 +0000 (10:03 +0000)
commit5b427ce7c37a517695b30a415c14dace633da6b4
treee509c6b69f8165323c07267f8e66dd538bf984da
parentce44b29901cf2de25af72b653997a1f8e56459cb
A command like `mkdir -p nonexistent/.' would create the
directory but exit nonzero with a diagnostic.  This could also be
triggered with a non-`.' component, e.g., in a race with another
process running the same `mkdir -p nonexistent/sub' command.

(make_dir_parents): Handle the case of an existing final component.
Reported by Matthias Andree here:
http://savannah.gnu.org/bugs/?func=detailitem&item_id=14848
lib/mkdir-p.c