From 7d1fcfa09be96b0f6864996b0554b1355e34be35 Mon Sep 17 00:00:00 2001 From: Feoramund <161657516+Feoramund@users.noreply.github.com> Date: Fri, 4 Oct 2024 13:30:35 -0400 Subject: [PATCH 1/2] Fix wrong path in `os2.user_config_dir` --- core/os/os2/user.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/os/os2/user.odin b/core/os/os2/user.odin index a0a7a839d..7fcc87bf8 100644 --- a/core/os/os2/user.odin +++ b/core/os/os2/user.odin @@ -49,7 +49,7 @@ user_config_dir :: proc(allocator: runtime.Allocator) -> (dir: string, err: Erro dir = concatenate({dir, "/.config"}, allocator) or_return } case: // All other UNIX systems - dir = get_env("XDG_CACHE_HOME", allocator) + dir = get_env("XDG_CONFIG_HOME", allocator) if dir == "" { dir = get_env("HOME", temp_allocator()) if dir == "" { From 675bffce886ff161cf05adaf2e9f3c8429457b64 Mon Sep 17 00:00:00 2001 From: Feoramund <161657516+Feoramund@users.noreply.github.com> Date: Thu, 27 Feb 2025 16:07:22 -0500 Subject: [PATCH 2/2] Add missing allocator in `os2.file_info_clone` --- core/os/os2/stat.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/os/os2/stat.odin b/core/os/os2/stat.odin index b53ebb3ab..d0a5a659d 100644 --- a/core/os/os2/stat.odin +++ b/core/os/os2/stat.odin @@ -24,7 +24,7 @@ File_Info :: struct { @(require_results) file_info_clone :: proc(fi: File_Info, allocator: runtime.Allocator) -> (cloned: File_Info, err: runtime.Allocator_Error) { cloned = fi - cloned.fullpath = strings.clone(fi.fullpath) or_return + cloned.fullpath = strings.clone(fi.fullpath, allocator) or_return cloned.name = filepath.base(cloned.fullpath) return }