chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
systemctl: allow globbing in commands which take multiple unit names
[elogind.git]
/
src
/
udev
/
udev-rules.c
diff --git
a/src/udev/udev-rules.c
b/src/udev/udev-rules.c
index bbf547222c2f212c40db6f15276be6abd0016893..52634f137d4352f146447f9dcbb9060648412812 100644
(file)
--- a/
src/udev/udev-rules.c
+++ b/
src/udev/udev-rules.c
@@
-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);
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) {
if (has_split && has_glob) {
glob = GL_SPLIT_GLOB;
} else if (has_split) {