From 6d6e840bc26a92bee1eb257d081bbc3695d741a4 Mon Sep 17 00:00:00 2001 From: CiD- Date: Mon, 14 Mar 2022 15:56:41 -0400 Subject: [PATCH] mkdir_all: WHOOPS --- core/os/os2/path_linux.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/os/os2/path_linux.odin b/core/os/os2/path_linux.odin index fa47f1883..85c39916f 100644 --- a/core/os/os2/path_linux.odin +++ b/core/os/os2/path_linux.odin @@ -52,7 +52,7 @@ _mkdir_all :: proc(path: string, perm: File_Mode) -> Error { } fallthrough case 0: - if res := unix.sys_close(int(dfd)) < 0; res < 0 { + if res := unix.sys_close(int(dfd)); res < 0 { return _get_platform_error(res) } // skip consecutive '/'