From d4935c2f80122827a02d9f66c020d7e8ef6d6ade Mon Sep 17 00:00:00 2001 From: Dave Brolley Date: Mon, 20 Apr 2009 11:32:04 -0400 Subject: 2009-04-20 Dave Brolley * 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. --- main.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main.cxx') 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; -- cgit