t9pfuse: handle two more flags - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 281ca361d340f6afb153bfa2bfbdcf61116a31bf
 (DIR) parent 7479a49b90c0f5ece48b5fadcb5f5340512e5a98
 (HTM) Author: Russ Cox <rsc@swtch.com>
       Date:   Wed,  5 Oct 2011 16:20:25 -0400
       
       9pfuse: handle two more flags
       
       Diffstat:
         M src/cmd/9pfuse/main.c               |       9 ++++++++-
       
       1 file changed, 8 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/src/cmd/9pfuse/main.c b/src/cmd/9pfuse/main.c
       t@@ -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
       t@@ -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;
                }