Signed-off-by: Lidong Zhong <lzhong@xxxxxxxx> --- policy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/policy.c b/policy.c index 064d349..5231ae6 100644 --- a/policy.c +++ b/policy.c @@ -253,13 +253,13 @@ static int pol_match(struct rule *rule, char *path, char *type) int typeok = 0; while (rule) { - if (rule->name == rule_path) { + if (!strcmp(rule->name, rule_path)) { if (pathok == 0) pathok = -1; if (path && fnmatch(rule->value, path, 0) == 0) pathok = 1; } - if (rule->name == rule_type) { + if (!strcmp(rule->name, rule_type)) { if (typeok == 0) typeok = -1; if (type && strcmp(rule->value, type) == 0) -- 1.8.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html