]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/nfs/nfs4file.c
NFSv4: Handle the special Linux file open access mode
[linux.git] / fs / nfs / nfs4file.c
index cf42a8b939e3ed0c4e866af3905b1d4ee8ff1dff..3a507c42c1caebe248857432c42c84fbebf0ec13 100644 (file)
@@ -49,7 +49,7 @@ nfs4_file_open(struct inode *inode, struct file *filp)
                return err;
 
        if ((openflags & O_ACCMODE) == 3)
-               openflags--;
+               return nfs_open(inode, filp);
 
        /* We can't create new files here */
        openflags &= ~(O_CREAT|O_EXCL);