fuse: Always fail X_OK in access()

Pointed out by Ray Strode.
This commit is contained in:
Matthias Clasen committed 2016-07-27 16:00:44 -04:00
1 parent c01c6b487a
commit d245ba3574
1 file changed
+2 -1
+2 -1
View File
@@ -2159,7 +2159,8 @@ xdp_fuse_access (fuse_req_t req, fuse_ino_t ino, int mask)
else
{
if (((mask & R_OK) && !app_can_see_doc (entry, inode->app_id)) ||
((mask & W_OK) && !app_can_write_doc (entry, inode->app_id)))
((mask & W_OK) && !app_can_write_doc (entry, inode->app_id)) ||
(mask & X_OK))
{
fuse_reply_err (req, EACCES);
return;