🐞 fix(dfs_v2/filesystems/elmfat): fix elm can not exec (#8118)
This commit is contained in:
parent
b1fae3a604
commit
e5c5ec4b2a
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue