diff options
-rw-r--r-- | src/cmd/9pfuse/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/9pfuse/main.c b/src/cmd/9pfuse/main.c index 37064d4e..ade1eb7d 100644 --- a/src/cmd/9pfuse/main.c +++ b/src/cmd/9pfuse/main.c @@ -672,7 +672,9 @@ fusecreate(FuseMsg *m) in = m->tx; flags = in->flags; openmode = in->flags&3; + flags &= ~3; flags &= ~(O_DIRECTORY|O_NONBLOCK|O_LARGEFILE); + flags &= ~(O_CREAT|O_TRUNC); /* huh? */ if(flags){ fprint(2, "bad mode %#uo\n", in->flags); replyfuseerrno(m, EACCES); |