fs: fix wrong mode on files

This commit is contained in:
Matheus
2022-09-24 00:04:30 -03:00
parent 58453f4c60
commit 9c6d1157d7
3 changed files with 14 additions and 10 deletions
+2 -2
View File
@@ -176,7 +176,7 @@ int vfs_create(dirnode_t* ref, char* path, mode_t mode){
spinlock_release(&lock);
return EEXIST;
}
result = parent->vnode.fs->calls->create(parent, name, NULL);
result = parent->vnode.fs->calls->create(parent, name, mode);
spinlock_release(&lock);
@@ -205,7 +205,7 @@ int vfs_mkdir(dirnode_t* ref, char* path, mode_t mode){
return EEXIST;
}
result = parent->vnode.fs->calls->mkdir(parent, name, NULL);
result = parent->vnode.fs->calls->mkdir(parent, name, mode);
spinlock_release(&lock);