summaryrefslogtreecommitdiff
path: root/libstd
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
commitecefac44634dd5c7e9b7f17716644934b8b240f5 (patch)
tree621781fc5b87eefb93a08ed114106b877e4d9b0f /libstd
parent6263d1ed56b04df831ad16ac4837965aa052a894 (diff)
downloadmc-ecefac44634dd5c7e9b7f17716644934b8b240f5.tar.gz
Blat needs permissions.
Diffstat (limited to 'libstd')
-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
;;