]> granicus.if.org Git - p11-kit/commitdiff
common: In tests preserve parent environment for children
authorStef Walter <stefw@redhat.com>
Thu, 2 Oct 2014 06:22:39 +0000 (08:22 +0200)
committerStef Walter <stefw@redhat.com>
Thu, 2 Oct 2014 06:24:44 +0000 (08:24 +0200)
common/test.c

index 289b35b98d855dd5981a7b40df760a05fd8bb24d..5a1cf721c9ed320b454899fd56a1a78bec60b52d 100644 (file)
@@ -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 ();
        }