Fix posix

This commit is contained in:
Lucas Perlind
2025-05-08 17:41:03 +10:00
parent 1bea59ee68
commit 5292a7f4f3
5 changed files with 35 additions and 32 deletions
+2 -1
View File
@@ -122,7 +122,8 @@ _lstat :: proc(name: string, allocator: runtime.Allocator) -> (fi: File_Info, er
}
stat: posix.stat_t
if posix.lstat(clone_to_cstring(fullpath), &stat, temp_allocator) != .OK {
c_fullpath := clone_to_cstring(fullpath, temp_allocator) or_return
if posix.lstat(c_fullpath, &stat) != .OK {
err = _get_platform_error()
return
}