summaryrefslogtreecommitdiffstats
path: root/parse.cxx
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2009-10-13 07:59:25 -0400
committerFrank Ch. Eigler <fche@elastic.org>2009-10-13 07:59:25 -0400
commite61d83ef1459c8608634f26fca83e2e42dc5c10d (patch)
tree1a285a4b4236b0291b779f807c6b52ed928d57bf /parse.cxx
parent9a59aed914fbe25e159b2a60a97693f14b24ddf3 (diff)
downloadsystemtap-steved-e61d83ef1459c8608634f26fca83e2e42dc5c10d.tar.gz
systemtap-steved-e61d83ef1459c8608634f26fca83e2e42dc5c10d.tar.xz
systemtap-steved-e61d83ef1459c8608634f26fca83e2e42dc5c10d.zip
parse: fix CONFIG_ matching typo
* parse.cxx (eval_pp_conditional): Flip rhs and lhs args for fnmatch().
Diffstat (limited to 'parse.cxx')
-rw-r--r--parse.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.cxx b/parse.cxx
index b88ef7ff..5b3506f8 100644
--- a/parse.cxx
+++ b/parse.cxx
@@ -277,7 +277,7 @@ bool eval_pp_conditional (systemtap_session& s,
string lhs = s.kernel_config[l->content]; // may be empty
string rhs = r->content;
- int nomatch = fnmatch (lhs.c_str(), rhs.c_str(), FNM_NOESCAPE); // still spooky
+ int nomatch = fnmatch (rhs.c_str(), lhs.c_str(), FNM_NOESCAPE); // still spooky
bool result;
if (op->type == tok_operator && op->content == "==")