commit | 49b33c1f215d5d58838845cbbaefc007bd0f9ac7 | [log] [tgz] |
---|---|---|
author | Anssi Hannula <anssi@mageia.org> | Wed Mar 19 01:26:00 2014 +0200 |
committer | Lucas De Marchi <lucas.demarchi@intel.com> | Wed Mar 19 09:18:39 2014 -0300 |
tree | e4ad2555d78a8c3b9e164dbf470f228a58569a04 | |
parent | aa0abec721707da6cad794a1bf6da9ecdcefbe88 [diff] |
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.