don't transliterate lower bits of ->intent.open.flags to FMODE_...
[pandora-kernel.git] / fs / fuse / dir.c
index e2b1400..47559dd 100644 (file)
@@ -382,7 +382,7 @@ static int fuse_create_open(struct inode *dir, struct dentry *entry, int mode,
        struct fuse_entry_out outentry;
        struct fuse_file *ff;
        struct file *file;
-       int flags = nd->intent.open.flags - 1;
+       int flags = nd->intent.open.flags;
 
        if (fc->no_create)
                return -ENOSYS;