From e5c5ec4b2af21c5c727c916cdc45c7775d7c747e Mon Sep 17 00:00:00 2001 From: xqyjlj Date: Mon, 9 Oct 2023 13:26:58 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(dfs=5Fv2/filesystems/elmfat)?= =?UTF-8?q?:=20fix=20elm=20can=20not=20exec=20(#8118)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/dfs/dfs_v2/filesystems/elmfat/dfs_elm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/dfs/dfs_v2/filesystems/elmfat/dfs_elm.c b/components/dfs/dfs_v2/filesystems/elmfat/dfs_elm.c index a5eb24ecaf..c6281c55b7 100644 --- a/components/dfs/dfs_v2/filesystems/elmfat/dfs_elm.c +++ b/components/dfs/dfs_v2/filesystems/elmfat/dfs_elm.c @@ -908,7 +908,7 @@ static struct dfs_vnode *dfs_elm_lookup(struct dfs_dentry *dentry) } else { - vnode->mode = S_IFREG | (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); + vnode->mode = S_IFREG | S_IXUSR | (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); vnode->type = FT_REGULAR; } @@ -939,7 +939,6 @@ static struct dfs_vnode *dfs_elm_create_vnode(struct dfs_dentry *dentry, int typ } else { - vnode->mode = S_IFREG | mode; vnode->type = FT_REGULAR; }