[CRIU] [PATCH] util: mkdirp -- Print exactly what is failed

Tycho Andersen tycho.andersen at canonical.com
Wed Sep 17 07:07:41 PDT 2014


On Wed, Sep 17, 2014 at 11:59:31AM +0400, Cyrill Gorcunov wrote:
> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>

Probably I should have done this in the first place, thanks.

Acked-by: Tycho Andersen <tycho.andersen at canonical.com>

> ---
>  util.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/util.c b/util.c
> index 3fae835fd7a7..b5aef2f6152e 100644
> --- a/util.c
> +++ b/util.c
> @@ -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) {
> -- 
> 1.9.3
> 
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu


More information about the CRIU mailing list