chiark / gitweb /
systemctl: allow globbing in commands which take multiple unit names
[elogind.git] / src / udev / udev-rules.c
index bbf547222c2f212c40db6f15276be6abd0016893..52634f137d4352f146447f9dcbb9060648412812 100644 (file)
@@ -961,7 +961,7 @@ static int rule_add_key(struct rule_tmp *rule_tmp, enum token_type type,
                 int has_glob;
 
                 has_split = (strchr(value, '|') != NULL);
-                has_glob = (strchr(value, '*') != NULL || strchr(value, '?') != NULL || strchr(value, '[') != NULL);
+                has_glob = string_is_glob(value);
                 if (has_split && has_glob) {
                         glob = GL_SPLIT_GLOB;
                 } else if (has_split) {