From e61d83ef1459c8608634f26fca83e2e42dc5c10d Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Tue, 13 Oct 2009 07:59:25 -0400 Subject: parse: fix CONFIG_ matching typo * parse.cxx (eval_pp_conditional): Flip rhs and lhs args for fnmatch(). --- parse.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'parse.cxx') 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 == "==") -- cgit