From e843303d6f18d56d7c412e6c879134f7b79372ac Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Fri, 29 May 2020 17:02:24 +1000 Subject: [PATCH] radv: fix regression with builtin cache MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit If the ~/.cache dir already exists continue on without failing. Fixes: cd61f5234d2c ("radv: Handle failing to create .cache dir.") Tested-by: Dieter Nützel Reviewed-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- src/amd/vulkan/radv_meta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_meta.c b/src/amd/vulkan/radv_meta.c index 6d2f24d148f..f0156829526 100644 --- a/src/amd/vulkan/radv_meta.c +++ b/src/amd/vulkan/radv_meta.c @@ -262,7 +262,7 @@ radv_builtin_cache_path(char *path) strcpy(path, pwd.pw_dir); strcat(path, "/.cache"); - if (mkdir(path, 0755)) + if (mkdir(path, 0755) && errno != EEXIST) return false; ret = snprintf(path, PATH_MAX + 1, "%s%s%zd", -- 2.30.2