From 68fbe4a2292dc5b4025dd4201fd4b892605079b7 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Fri, 13 Jun 2025 19:16:27 -0400 Subject: kernel: spawn: Add argv + stub envp arguments Signed-off-by: Ian Moffett --- usr.sbin/install/install.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr.sbin/install/install.c') diff --git a/usr.sbin/install/install.c b/usr.sbin/install/install.c index 5cedc06..91f75df 100644 --- a/usr.sbin/install/install.c +++ b/usr.sbin/install/install.c @@ -82,6 +82,8 @@ installer_clearscr(uint32_t color, bool setattr) static void pre_installer(void) { + char *argv[] = { "/usr/bin/osh", NULL }; + char *envp[] = { NULL }; char c; puts("[S]hell/[I]nstall"); @@ -90,7 +92,7 @@ pre_installer(void) if (c == 's') { puts("\033[0m"); installer_clearscr(0x000000, false); - spawn("/usr/bin/osh", SPAWN_WAIT); + spawn(argv[0], argv, envp, SPAWN_WAIT); installer_clearscr(INSTALLER_BG, true); break; } else if (c == 'i') { -- cgit v1.2.3