summaryrefslogtreecommitdiff
path: root/libstd/blat.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-02-22 13:21:31 -0500
committerOri Bernstein <ori@eigenstate.org>2015-02-22 13:21:31 -0500
commitb525ad28eda5b9ac0f6f64d7dfeec42ae9cb6cf0 (patch)
tree621781fc5b87eefb93a08ed114106b877e4d9b0f /libstd/blat.myr
parent73b28cf5864bbe111dd5bf3fd47ea03090130d0f (diff)
downloadmc-b525ad28eda5b9ac0f6f64d7dfeec42ae9cb6cf0.tar.gz
Blat needs permissions.
Diffstat (limited to 'libstd/blat.myr')
-rw-r--r--libstd/blat.myr6
1 files changed, 3 insertions, 3 deletions
diff --git a/libstd/blat.myr b/libstd/blat.myr
index f0a4eef..724bc90 100644
--- a/libstd/blat.myr
+++ b/libstd/blat.myr
@@ -2,14 +2,14 @@ use "syswrap.use"
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
;;