diff options
author | Ian Moffett <ian@osmora.org> | 2025-06-13 19:16:27 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-06-13 19:16:27 -0400 |
commit | 68fbe4a2292dc5b4025dd4201fd4b892605079b7 (patch) | |
tree | b2683975dc48116a57a7c7911712b63749a176b1 /usr.sbin/install/install.c | |
parent | 9f534c75cd0e29b5b829c412ced28fa846c7d911 (diff) |
kernel: spawn: Add argv + stub envp arguments
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'usr.sbin/install/install.c')
-rw-r--r-- | usr.sbin/install/install.c | 4 |
1 files changed, 3 insertions, 1 deletions
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') { |