2
0
Эх сурвалжийг харах

Change open to be read only when opening directory

Daniel Gavin 3 жил өмнө
parent
commit
25869b7504

+ 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 {
 		return
 	}