vfs: make setattr take in which attributes to change

This commit is contained in:
Matheus
2024-05-27 23:05:57 -03:00
parent 04d8431b32
commit 0030a0b21b
11 changed files with 93 additions and 56 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ static int dochmod(vnode_t *node, mode_t mode) {
attr.mode = UMASK(mode);
return VOP_SETATTR(node, &attr, cred);
return VOP_SETATTR(node, &attr, V_ATTR_MODE, cred);
}
syscallret_t syscall_fchmodat(context_t *, int dirfd, const char *upath, mode_t mode, int flags) {