mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 20:58:22 +00:00
coreutils port
This commit is contained in:
@@ -76,7 +76,7 @@ syscallret_t syscall_execve(context_t *context, char *upath, char *uargv[], char
|
||||
|
||||
refnode = *path == '/' ? sched_getroot() : sched_getcwd();
|
||||
|
||||
ret.errno = vfs_lookup(&node, vfsroot, "/usr/bin/bash", NULL, 0);
|
||||
ret.errno = vfs_lookup(&node, vfsroot, path, NULL, 0);
|
||||
if (ret.errno)
|
||||
goto error;
|
||||
|
||||
@@ -142,7 +142,5 @@ syscallret_t syscall_execve(context_t *context, char *upath, char *uargv[], char
|
||||
CTX_IP(context) = (uint64_t)entry;
|
||||
}
|
||||
|
||||
printf("exec ret: %lu %lu\n", ret.ret, ret.errno);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user