summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stefw@redhat.com>2014-10-02 08:22:39 +0200
committerStef Walter <stefw@redhat.com>2014-10-02 08:24:44 +0200
commitc9474683dd3db5ad87227dd3c3734ab31bfc01e9 (patch)
tree1841120941d45f5f9b522edb3b5ac7c2610d85ed
parentd3505c2b556b859e1a14062579fd67ec2ab25435 (diff)
downloadp11-kit-c9474683dd3db5ad87227dd3c3734ab31bfc01e9.tar.gz
common: In tests preserve parent environment for children
-rw-r--r--common/test.c2
1 files changed, 1 insertions, 1 deletions
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 ();
}