shithub: mc

Download patch

ref: b525ad28eda5b9ac0f6f64d7dfeec42ae9cb6cf0
parent: 73b28cf5864bbe111dd5bf3fd47ea03090130d0f
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Feb 22 08:21:31 EST 2015

Blat needs permissions.

--- a/libstd/blat.myr
+++ b/libstd/blat.myr
@@ -2,14 +2,14 @@
 use "fmt.use"
 
 pkg std =
-	const blat : (path : byte[:], buf : byte[:] -> bool)
+	const blat : (path : byte[:], buf : byte[:], perm : int64 -> bool)
 	const fblat : (f : fd, buf : byte[:] -> bool)
 ;;
 
-const blat = {path, buf
+const blat = {path, buf, perm
 	var fd
 
-	fd = openmode(path, Ocreat|Owronly, 0o666)
+	fd = openmode(path, Ocreat|Owronly, perm)
 	if fd < 0
 		-> false
 	;;