From d7158243a69ecb40abe619656503c9fd25c80786 Mon Sep 17 00:00:00 2001 From: rsc Date: Wed, 9 May 2007 00:05:06 +0000 Subject: =?UTF-8?q?Better=20flag=20handling=20in=20fusecreate=20(Michael?= =?UTF-8?q?=20Teichgr=C3=A4ber)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cmd/9pfuse/main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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); -- cgit v1.2.3