🐞 fix(dfs_v2/filesystems/elmfat): fix elm can not exec (#8118)

This commit is contained in:
xqyjlj 2023-10-09 13:26:58 +08:00 committed by GitHub
parent b1fae3a604
commit e5c5ec4b2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -908,7 +908,7 @@ static struct dfs_vnode *dfs_elm_lookup(struct dfs_dentry *dentry)
} }
else 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; vnode->type = FT_REGULAR;
} }
@ -939,7 +939,6 @@ static struct dfs_vnode *dfs_elm_create_vnode(struct dfs_dentry *dentry, int typ
} }
else else
{ {
vnode->mode = S_IFREG | mode; vnode->mode = S_IFREG | mode;
vnode->type = FT_REGULAR; vnode->type = FT_REGULAR;
} }