mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-30 14:08:21 +00:00
fs: fix wrong mode on files
This commit is contained in:
+2
-2
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user