From 5c2d0065db31b312c7c67b58b85eb0ffc6f03651 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Fri, 11 Nov 2016 11:19:46 +0100 Subject: [PATCH] document-portal: Correctly detect truncation and exclusive mode --- document-portal/xdp-fuse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/document-portal/xdp-fuse.c b/document-portal/xdp-fuse.c index 963be7fd..506f6d0d 100644 --- a/document-portal/xdp-fuse.c +++ b/document-portal/xdp-fuse.c @@ -1623,8 +1623,8 @@ xdp_fuse_create (fuse_req_t req, inode = xdp_inode_create_file (parent_inode, filename, mode, - (fi->flags | O_TRUNC) != 0, - (fi->flags | O_EXCL) != 0); + (fi->flags & O_TRUNC) != 0, + (fi->flags & O_EXCL) != 0); if (inode == NULL) { fuse_reply_err (req, errno);