aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-07-25 12:12:32 +0100
committergingerBill <bill@gingerbill.org>2022-07-25 12:12:32 +0100
commitbce8819ed54623677ea17699128f9a16c7d9c8d6 (patch)
tree42ef7f36c0873e7e801c83b37465378063028fa7
parent5f2b220a850c6812bb7b5e4d778be37d8dc8962b (diff)
parentf174c805a9bc9ff984c89789776f3f2b2fd831d5 (diff)
Merge branch 'master' of https://github.com/odin-lang/Odin
-rw-r--r--core/path/filepath/match.odin2
1 files changed, 1 insertions, 1 deletions
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
}