diff options
author | Timothy Arceri <[email protected]> | 2020-05-29 17:02:24 +1000 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-05-30 04:01:28 +0000 |
commit | e843303d6f18d56d7c412e6c879134f7b79372ac (patch) | |
tree | 0d2d19a9f3c7787ee00009a69c285388cf955737 | |
parent | 7e4c8949c6f79090b7d8675b488c7bdc90477e26 (diff) |
radv: fix regression with builtin cache
If the ~/.cache dir already exists continue on without failing.
Fixes: cd61f5234d2c ("radv: Handle failing to create .cache dir.")
Tested-by: Dieter Nützel <[email protected]>
Reviewed-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5249>
-rw-r--r-- | src/amd/vulkan/radv_meta.c | 2 |
1 files changed, 1 insertions, 1 deletions
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", |