Merge pull request #1905 from DanielGavin/glob-fix

Change open to be read only when opening directory
This commit is contained in:
gingerBill
2022-07-25 10:43:28 +01:00
committed by GitHub
+1 -1
View File
@@ -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
}