Skip to content

Commit

Permalink
libs: update vafs and fix build issue in dirs-linux.c
Browse files Browse the repository at this point in the history
  • Loading branch information
Meulengracht committed Feb 14, 2025
1 parent 950b304 commit 702d2d5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions libs/dirconf/dirs-linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,7 @@ static char* __root_common_user_directory(void)
#endif
status = platform_getuserdir(&buffer[0], sizeof(buffer) - 1);
if (status) {
VLOG_ERROR("dirs", "failed to resolve user directory\n");
return -1;
return NULL;
}
return strpathcombine(&buffer[0], ".chef");
}
Expand All @@ -221,7 +220,13 @@ int chef_dirs_initialize(void)
}

g_dirs.real_user = realUser;

g_dirs.root = __root_common_user_directory();
if (g_dirs.root == NULL) {
VLOG_ERROR("dirs", "failed to resolve user directory\n");
return -1;
}

g_dirs.fridge = strpathcombine(g_dirs.root, "fridge");
g_dirs.store = strpathcombine(g_dirs.root, "store");
g_dirs.kitchen = strpathcombine(g_dirs.root, "kitchen");
Expand Down
2 changes: 1 addition & 1 deletion libs/vafs

0 comments on commit 702d2d5

Please sign in to comment.