]> git.ipfire.org Git - thirdparty/kmod.git/commit
depmod: fix modules.builtin.alias.bin output
authorLucas De Marchi <lucas.demarchi@intel.com>
Tue, 11 May 2021 16:48:04 +0000 (09:48 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Tue, 11 May 2021 16:49:35 +0000 (09:49 -0700)
commitf0a136076189b50e252773ff79d800e56e840b14
tree5deef435f9eac6dabc7b35d4de77a560d9e907c3
parent729f0f685336e7aa91d1a0236a8f09804d261b90
depmod: fix modules.builtin.alias.bin output

Due to wrong documentation on kmod_module_get_info() we ended up
checking for 0 as return. Check for > 0 to decided if we want to write
the index to the file, otherwise we would output a 0-sized index on
success.
tools/depmod.c