os2: fix lstat logic

This commit is contained in:
Laytan Laats
2024-08-14 01:44:37 +02:00
parent 00eb702c4a
commit 7474db6a34
2 changed files with 25 additions and 12 deletions
+1 -2
View File
@@ -96,8 +96,7 @@ _remove_all :: proc(path: string) -> Error {
}
_get_working_directory :: proc(allocator: runtime.Allocator) -> (dir: string, err: Error) {
assert(!is_temp(allocator))
TEMP_ALLOCATOR_GUARD()
TEMP_ALLOCATOR_GUARD(ignore=is_temp(allocator))
buf: [dynamic]byte
buf.allocator = temp_allocator()