document-portal: Correctly detect truncation and exclusive mode

tingping/wmclass
Alexander Larsson 2016-11-11 11:19:46 +01:00
parent 4c77e37960
commit 5c2d0065db
1 changed files with 2 additions and 2 deletions

View File

@ -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);