radv: Handle failing to create .cache dir.

Fixes: f4e499ec79 "radv: add initial non-conformant radv vulkan driver"
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5181>
This commit is contained in:
Bas Nieuwenhuizen 2020-05-23 02:26:04 +02:00 committed by Marge Bot
parent 906435fb0e
commit cd61f5234d

View file

@ -262,7 +262,8 @@ radv_builtin_cache_path(char *path)
strcpy(path, pwd.pw_dir);
strcat(path, "/.cache");
mkdir(path, 0755);
if (mkdir(path, 0755))
return false;
ret = snprintf(path, PATH_MAX + 1, "%s%s%zd",
pwd.pw_dir, suffix2, sizeof(void *) * 8);