From 25869b7504c2de9197a2047391bf10b0a42f8862 Mon Sep 17 00:00:00 2001 From: Daniel Gavin Date: Mon, 25 Jul 2022 11:34:03 +0200 Subject: [PATCH] Change open to be read only when opening directory --- core/path/filepath/match.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/path/filepath/match.odin b/core/path/filepath/match.odin index 00a9c9fb0..c932f202a 100644 --- a/core/path/filepath/match.odin +++ b/core/path/filepath/match.odin @@ -271,7 +271,7 @@ _glob :: proc(dir, pattern: string, matches: ^[dynamic]string, allocator := cont } - d, derr := os.open(dir) + d, derr := os.open(dir, os.O_RDONLY) if derr != 0 { return }