Commit 19018622 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

util: mkdirp -- Print exactly what is failed

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Acked-by: 's avatarTycho Andersen <tycho.andersen@canonical.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 232cb4b3
......@@ -678,7 +678,7 @@ int mkdirp(const char *path)
if (pos)
*pos = '\0';
if (mkdir(made_path, 0755) < 0 && errno != EEXIST) {
pr_perror("couldn't mkdirpat directory");
pr_perror("couldn't mkdirpat directory %s", made_path);
return -1;
}
if (pos) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment