summaryrefslogtreecommitdiffstats
path: root/runtime/staprun/staprun.c
diff options
context:
space:
mode:
authorMartin Hunt <hunt@redhat.com>2008-04-22 18:09:58 -0400
committerMartin Hunt <hunt@redhat.com>2008-04-22 18:09:58 -0400
commit1482d30eb166b566e99fa21f9cd697abb711c30e (patch)
tree2744772ddc860a31ca716be5b2d7324898ea9df9 /runtime/staprun/staprun.c
parent79f716ddbd288236b816b1a7d5bf57e28403f4fa (diff)
downloadsystemtap-steved-1482d30eb166b566e99fa21f9cd697abb711c30e.tar.gz
systemtap-steved-1482d30eb166b566e99fa21f9cd697abb711c30e.tar.xz
systemtap-steved-1482d30eb166b566e99fa21f9cd697abb711c30e.zip
Allow staprun to run on kernels without capabilities configured.
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]);