From: Stef Walter Date: Thu, 2 Oct 2014 06:22:39 +0000 (+0200) Subject: common: In tests preserve parent environment for children X-Git-Tag: 0.22.0~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c9474683dd3db5ad87227dd3c3734ab31bfc01e9;p=p11-kit common: In tests preserve parent environment for children --- diff --git a/common/test.c b/common/test.c index 289b35b..5a1cf72 100644 --- a/common/test.c +++ b/common/test.c @@ -532,7 +532,7 @@ p11_test_run_child (const char **argv, if (child == 0) { if (quiet_out) close (1); /* stdout */ - execve (argv[0], (char **)argv, NULL); + execv (argv[0], (char **)argv); assert_not_reached (); }