From 6e1634015fa6df1213d7fbaa3b0c2e7b34f08ef2 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 28 May 2024 18:51:46 -0400 Subject: kernel: exec: Use dummy envp Signed-off-by: Ian Moffett --- sys/kern/kern_exec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index a1e97be..202da23 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -59,6 +59,7 @@ __KERNEL_META("$Hyra$: kern_exec.c, Ian Marco Moffett, " static int exec_get_args(char **argv, struct exec_args *res) { + static char *dmmy_envp[] = {NULL}; const size_t ARG_LEN = sizeof(char) * ARG_MAX; char *argp = NULL; void *tmp; @@ -76,6 +77,7 @@ exec_get_args(char **argv, struct exec_args *res) td = this_td(); res->vas = td->addrsp; + res->envp = dmmy_envp; /* Read argv */ copyin((uintptr_t)argv, &argp, sizeof(char *)); -- cgit v1.2.3