diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd/9pfuse/main.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/cmd/9pfuse/main.c b/src/cmd/9pfuse/main.c index e319f36b..a72d0f94 100644 --- a/src/cmd/9pfuse/main.c +++ b/src/cmd/9pfuse/main.c @@ -577,6 +577,13 @@ _fuseopen(FuseMsg *m, int isdir) openmode = flags&3; flags &= ~3; flags &= ~(O_DIRECTORY|O_NONBLOCK|O_LARGEFILE|O_CLOEXEC); +#ifdef O_NOFOLLOW + flags &= ~O_NOFOLLOW +#endif +#ifdef O_LARGEFILE + flags &= ~O_LARGEFILE +#endif + /* * Discarding O_APPEND here is not completely wrong, * because the host kernel will rewrite the offsets @@ -594,7 +601,7 @@ _fuseopen(FuseMsg *m, int isdir) * O_NONBLOCK -> ONONBLOCK */ if(flags){ - fprint(2, "unexpected open flags %#uo", (uint)in->flags); + fprint(2, "unexpected open flags %#uo\n", (uint)in->flags); replyfuseerrno(m, EACCES); return; } |