summaryrefslogtreecommitdiff
path: root/lib/std/syswrap+plan9.myr
diff options
context:
space:
mode:
authorglenda@drat <glenda@drat>2016-05-26 07:08:50 -0700
committerglenda@drat <glenda@drat>2016-05-26 07:08:50 -0700
commite2c2808a2a5f83c7c8f204cd01035a1713be8787 (patch)
tree3d47e731791aec5b05910a31ba7f8d3d699743d1 /lib/std/syswrap+plan9.myr
parent0b99465823930170bb45c9264c10ed5936be5bb4 (diff)
downloadmc-e2c2808a2a5f83c7c8f204cd01035a1713be8787.tar.gz
Fix test scripts.
Some tests are still busted.
Diffstat (limited to 'lib/std/syswrap+plan9.myr')
-rw-r--r--lib/std/syswrap+plan9.myr3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/std/syswrap+plan9.myr b/lib/std/syswrap+plan9.myr
index 1a27bf0..cb7841c 100644
--- a/lib/std/syswrap+plan9.myr
+++ b/lib/std/syswrap+plan9.myr
@@ -98,7 +98,8 @@ const openmode = {path, opts, mode;
if opts & Ocreat != 0
- fd = sys.create(path, (opts & ~Ocreat : sys.fdopt), (mode : int))
+ opts &= ~Ocreat
+ fd = sys.create(path, (opts : sys.fdopt), (mode : int))
else
fd = sys.open(path, (opts : sys.fdopt))
;;