summaryrefslogtreecommitdiffstats
path: root/runtime/staprun/staprun.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/staprun/staprun.c')
-rw-r--r--runtime/staprun/staprun.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/runtime/staprun/staprun.c b/runtime/staprun/staprun.c
index f9ca8e45..ee9bdc7b 100644
--- a/runtime/staprun/staprun.c
+++ b/runtime/staprun/staprun.c
@@ -260,9 +260,8 @@ int main(int argc, char **argv)
exit(1);
}
- if (!init_cap())
- exit(1);
-
+ init_cap();
+
if (check_permissions() != 1)
usage(argv[0]);