modinfo: fix fallout from basename removal
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 21 Feb 2015 16:08:35 +0000 (17:08 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 21 Feb 2015 16:08:35 +0000 (17:08 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
modutils/modinfo.c

index 0ab94289076c8322cc339b8655e4787dde13f884..ee379304c198d4335418dcb816709d0431bf69f9 100644 (file)
@@ -154,7 +154,7 @@ int modinfo_main(int argc UNUSED_PARAM, char **argv)
                if (colon == NULL)
                        continue;
                *colon = '\0';
-               filename2modname(tokens[0], name);
+               filename2modname(bb_basename(tokens[0]), name);
                for (i = 0; argv[i]; i++) {
                        if (fnmatch(argv[i], name, 0) == 0) {
                                modinfo(tokens[0], uts.release, &env);