]> git.ipfire.org Git - thirdparty/kmod.git/commit
depmod: fix checking file extension
authorLucas De Marchi <lucas.de.marchi@gmail.com>
Wed, 28 Nov 2012 16:26:23 +0000 (14:26 -0200)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Wed, 28 Nov 2012 16:26:23 +0000 (14:26 -0200)
commit650f89cd2510820a71dfc1b004634a309f12ecf1
tree70560a3b4ed8ad02947a61dfd8ae32686afc7d22
parent5d352563bd3a8d1c6bc07969a5fefe7ddf6bf1c6
depmod: fix checking file extension

In depfile_up_to_date_dir() we need to check if name has a kmod
extension. "path" variable there will be the directory name, which
doesn't contain an extension.

Without this, "depmod -A" returns that the modules.dep is up to date,
even if it isn't.

In depmod_modules_search_file() it's pointless to compare the basename,
so pass only the name to be checked.
tools/depmod.c