aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/9pfuse
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2007-05-09 00:05:06 +0000
committerrsc <devnull@localhost>2007-05-09 00:05:06 +0000
commitd7158243a69ecb40abe619656503c9fd25c80786 (patch)
tree9d93f7d62d50ab5ae60e3bab836b7bdb0bec159e /src/cmd/9pfuse
parent4198bd0e2eb7ce81972a27feea2ad518b8ea39da (diff)
downloadplan9port-d7158243a69ecb40abe619656503c9fd25c80786.tar.gz
plan9port-d7158243a69ecb40abe619656503c9fd25c80786.tar.bz2
plan9port-d7158243a69ecb40abe619656503c9fd25c80786.zip
Better flag handling in fusecreate (Michael Teichgräber)
Diffstat (limited to 'src/cmd/9pfuse')
-rw-r--r--src/cmd/9pfuse/main.c2
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);