diff options
author | Alexander Larsson <alexl@redhat.com> | 2015-09-18 14:27:32 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2015-09-18 14:27:32 +0200 |
commit | 2d31c3c7da776deed2abf476c399139eb3229bec (patch) | |
tree | 73b4bc7f0552aa8c66931b36cfc2e2d06b2b3614 /document-portal | |
parent | 905549ba488a7b29e6d060541a015c17a26ff6cf (diff) | |
download | xdg-app-2d31c3c7da776deed2abf476c399139eb3229bec.tar.gz |
fuse: Supply mode when creating files
https://bugs.freedesktop.org/show_bug.cgi?id=92034
Diffstat (limited to 'document-portal')
-rw-r--r-- | document-portal/xdp-fuse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/document-portal/xdp-fuse.c b/document-portal/xdp-fuse.c index 547cee9..2d013ae 100644 --- a/document-portal/xdp-fuse.c +++ b/document-portal/xdp-fuse.c @@ -1468,7 +1468,7 @@ xdp_fuse_create (fuse_req_t req, return; } - fd = openat (dir_fd, basename, O_CREAT|O_EXCL|O_RDONLY|O_NOFOLLOW|O_CLOEXEC); + fd = openat (dir_fd, basename, O_CREAT|O_EXCL|O_RDONLY|O_NOFOLLOW|O_CLOEXEC, mode & 0777); if (fd < 0) { fuse_reply_err (req, errno); |