Browse Source

Change open to be read only when opening directory

Daniel Gavin 3 years ago
parent
commit
25869b7504
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/path/filepath/match.odin

+ 1 - 1
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 {
 	if derr != 0 {
 		return
 		return
 	}
 	}