]> git.ipfire.org Git - thirdparty/kmod.git/commit - tools/depmod.c
depmod: do not allow partial matches with "search" directive
authorAnssi Hannula <anssi@mageia.org>
Tue, 18 Mar 2014 23:26:00 +0000 (01:26 +0200)
committerLucas De Marchi <lucas.demarchi@intel.com>
Wed, 19 Mar 2014 12:18:39 +0000 (09:18 -0300)
commit49b33c1f215d5d58838845cbbaefc007bd0f9ac7
treee4ad2555d78a8c3b9e164dbf470f228a58569a04
parentaa0abec721707da6cad794a1bf6da9ecdcefbe88
depmod: do not allow partial matches with "search" directive

Currently e.g. "search foo foobar built-in" will cause unpredictable
results if baz.ko is in both foo/ and foobar/, since "foo" in search may
match both of those directories and the preferred module therefore
depends on processing order.

Fix the code to ensure that the match is performed on full pathname
components only.
tools/depmod.c