mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-29 13:48:21 +00:00
proc: separate from sched
This commit is contained in:
@@ -31,7 +31,7 @@ syscallret_t syscall_chroot(context_t *, char *upath) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
vnode_t *ref = path[0] == '/' ? sched_getroot() : sched_getcwd();
|
||||
vnode_t *ref = path[0] == '/' ? proc_get_root() : proc_get_cwd();
|
||||
vnode_t *new = NULL;
|
||||
|
||||
ret.errno = vfs_lookup(&new, ref, path, NULL, 0);
|
||||
@@ -45,7 +45,7 @@ syscallret_t syscall_chroot(context_t *, char *upath) {
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
sched_setroot(new);
|
||||
proc_set_root(new);
|
||||
ret.ret = 0;
|
||||
|
||||
cleanup:
|
||||
|
||||
Reference in New Issue
Block a user