From 8f9e448b2ef6db7cd905540c21f3c5b190e7a1e7 Mon Sep 17 00:00:00 2001 From: Kacper Date: Sun, 7 Dec 2025 22:22:16 +0100 Subject: Add bin/true and bin/false implementations - Added assembly implementations for `true` and `false` commands. - Updated Kbuild files to include new binaries. - Removed unused libraries and headers. - Cleaned up makefile and unused code. --- lib/libc/unistd/execvp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/libc/unistd/execvp.c') diff --git a/lib/libc/unistd/execvp.c b/lib/libc/unistd/execvp.c index 2ce69354..ae8ecdb9 100644 --- a/lib/libc/unistd/execvp.c +++ b/lib/libc/unistd/execvp.c @@ -3,6 +3,7 @@ #include #include #include +#include extern char **environ; @@ -17,7 +18,7 @@ int execvp(const char *file, char *const argv[]) return execv(file, argv); } else { char *ptr; - char *path = NULL; // TODO: getenv + char *path = getenv("PATH"); if (path == NULL || *path == '\0') { path = "/bin"; -- cgit v1.2.3