aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/capabilities/test_execve.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/testing/selftests/capabilities/test_execve.c b/tools/testing/selftests/capabilities/test_execve.c
index 763f37fecfb8..7f2e999839c2 100644
--- a/tools/testing/selftests/capabilities/test_execve.c
+++ b/tools/testing/selftests/capabilities/test_execve.c
@@ -380,7 +380,8 @@ static int do_tests(int uid, const char *our_path)
380 true, true, true, false); 380 true, true, true, false);
381 } else { 381 } else {
382 printf("[RUN]\tNon-root +ia, sgidnonroot => i\n"); 382 printf("[RUN]\tNon-root +ia, sgidnonroot => i\n");
383 exec_other_validate_cap("./validate_cap_sgidnonroot", 383 if (fork_wait())
384 exec_other_validate_cap("./validate_cap_sgidnonroot",
384 false, false, true, false); 385 false, false, true, false);
385 386
386 if (fork_wait()) { 387 if (fork_wait()) {