From 0b42573e129c8c095536e15b326fe76b87da2601 Mon Sep 17 00:00:00 2001 From: Radovan Sroka Date: Fri, 28 Feb 2025 18:02:16 +0100 Subject: [PATCH] Fix normal pattern handling Signed-off-by: Radovan Sroka --- src/library/rules.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/library/rules.c b/src/library/rules.c index 849a6c39..7f8fc7f5 100644 --- a/src/library/rules.c +++ b/src/library/rules.c @@ -406,9 +406,10 @@ static int assign_subject(lnode *n, int type, const char *ptr2, int lineno) goto free_and_error; } - if (strcmp(tmp, - PATTERN_LD_SO_STR) == 0) { + if (strcmp(tmp, PATTERN_LD_SO_STR) == 0) { n->s[i].val = PATTERN_LD_SO_VAL; + } else if (strcmp(tmp, PATTERN_NORMAL_STR) == 0) { + n->s[i].val = PATTERN_NORMAL_VAL; } else if (strcmp(tmp, PATTERN_STATIC_STR) == 0) { n->s[i].val = PATTERN_STATIC_VAL; } else if (strcmp(tmp, PATTERN_LD_PRELOAD_STR) == 0) {