summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorxqyjlj <[email protected]>2023-10-09 13:26:58 +0800
committerGitHub <[email protected]>2023-10-09 13:26:58 +0800
commite5c5ec4b2af21c5c727c916cdc45c7775d7c747e (patch)
treee899511d120f2fcd56f8055daf2dfdd824f39ff2 /components
parentb1fae3a6041536be9a93c8a6c190177569a9fbe3 (diff)
🐞 fix(dfs_v2/filesystems/elmfat): fix elm can not exec (#8118)
Diffstat (limited to 'components')
-rw-r--r--components/dfs/dfs_v2/filesystems/elmfat/dfs_elm.c3
1 files changed, 1 insertions, 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;
}