mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-26 07:25:00 -07:00
Merge pull request #1905 from DanielGavin/glob-fix
Change open to be read only when opening directory
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user