mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 17:50:12 +01:00
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:
parent
906435fb0e
commit
cd61f5234d
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue