aboutsummaryrefslogtreecommitdiff
path: root/modutils/modprobe-small.c
diff options
context:
space:
mode:
Diffstat (limited to 'modutils/modprobe-small.c')
-rw-r--r--modutils/modprobe-small.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/modutils/modprobe-small.c b/modutils/modprobe-small.c
index 3aa06d57e..e82ee4cef 100644
--- a/modutils/modprobe-small.c
+++ b/modutils/modprobe-small.c
@@ -385,7 +385,11 @@ static module_info* find_alias(const char *alias)
385 /* Does matching substring exist? */ 385 /* Does matching substring exist? */
386 replace(desc, ' ', '\0'); 386 replace(desc, ' ', '\0');
387 for (s = desc; *s; s += strlen(s) + 1) { 387 for (s = desc; *s; s += strlen(s) + 1) {
388 if (strcmp(s, alias) == 0) { 388 /* aliases in module bodies can be defined with
389 * shell patterns. Example:
390 * "pci:v000010DEd000000D9sv*sd*bc*sc*i*".
391 * Plain strcmp() won't catch that */
392 if (fnmatch(s, alias, 0) == 0) {
389 free(desc); 393 free(desc);
390 dbg1_error_msg("found alias '%s' in module '%s'", 394 dbg1_error_msg("found alias '%s' in module '%s'",
391 alias, modinfo[i].pathname); 395 alias, modinfo[i].pathname);