coreutils port

This commit is contained in:
Matheus
2023-05-29 09:25:06 -03:00
parent 8412e71b0d
commit 1c93fd89e2
3 changed files with 29 additions and 3 deletions
+1 -3
View File
@@ -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;
}