summaryrefslogtreecommitdiffstats
path: root/main.cxx
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-04-20 11:32:04 -0400
committerDave Brolley <brolley@redhat.com>2009-04-20 11:32:04 -0400
commitd4935c2f80122827a02d9f66c020d7e8ef6d6ade (patch)
tree2222a7c848a1480577854ff29ce079d9bf039853 /main.cxx
parentae0430755d1605d934e9655d6f7206487fe6fc68 (diff)
downloadsystemtap-steved-d4935c2f80122827a02d9f66c020d7e8ef6d6ade.tar.gz
systemtap-steved-d4935c2f80122827a02d9f66c020d7e8ef6d6ade.tar.xz
systemtap-steved-d4935c2f80122827a02d9f66c020d7e8ef6d6ade.zip
2009-04-20 Dave Brolley <brolley@redhat.com>
* main.cxx (main): Turn of guru_mode if --unprivileged is specified and vice-versa. * elaborate.h (unprivileged_whitelist): New member of match_node. * elaborate.cxx (match_node::match_node): Initialize unprivileged_whitelist. (match_node::find_and_build): In --unprivileged mode, throw a semantic_error for probe components which are not in uinprivileged_whitelist.
Diffstat (limited to 'main.cxx')
-rw-r--r--main.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.cxx b/main.cxx
index c9f855c8..d367232d 100644
--- a/main.cxx
+++ b/main.cxx
@@ -610,6 +610,7 @@ main (int argc, char * const argv [])
case 'g':
s.guru_mode = true;
+ s.unprivileged = false;
break;
case 'P':
@@ -752,6 +753,7 @@ main (int argc, char * const argv [])
break;
case LONG_OPT_UNPRIVILEGED:
s.unprivileged = true;
+ s.guru_mode = false;
break;
default:
cerr << "Internal error parsing command arguments." << endl;