event-rule: Normalize pattern for syscall and tracepoint
[lttng-tools.git] / src / common / event-rule / syscall.c
index 8103eaa6131f64b97b125bc9b2ada4d619f77dac..fbaa65310a6966548690bbb7db65c9c6ca91712b 100644 (file)
@@ -14,6 +14,7 @@
 #include <common/runas.h>
 #include <common/hashtable/hashtable.h>
 #include <common/hashtable/utils.h>
+#include <common/string-utils/string-utils.h>
 #include <lttng/event-rule/event-rule-internal.h>
 #include <lttng/event-rule/syscall-internal.h>
 
@@ -414,9 +415,9 @@ enum lttng_event_rule_status lttng_event_rule_syscall_set_pattern(
                goto end;
        }
 
-       if (syscall->pattern) {
-               free(syscall->pattern);
-       }
+       strutils_normalize_star_glob_pattern(pattern_copy);
+
+       free(syscall->pattern);
 
        syscall->pattern = pattern_copy;
        pattern_copy = NULL;
This page took 0.035968 seconds and 4 git commands to generate.