From ae15c5abe0bb2d8bd5fd3502721288bcb1a85d59 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 13 Jun 2021 15:52:34 -0400 Subject: spawn: Allow NULL envp for the current environment --- exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'exec.c') diff --git a/exec.c b/exec.c index bc01808..431fcbe 100644 --- a/exec.c +++ b/exec.c @@ -374,7 +374,7 @@ static int bfs_exec_spawn(const struct bfs_exec *execbuf) { } } - pid = bfs_spawn(execbuf->argv[0], &ctx, execbuf->argv, environ); + pid = bfs_spawn(execbuf->argv[0], &ctx, execbuf->argv, NULL); fail: error = errno; bfs_spawn_destroy(&ctx); -- cgit v1.2.3