]> git.ipfire.org Git - thirdparty/kmod.git/commit
depmod: unconditionally write builtin.alias.bin
authorLucas De Marchi <lucas.demarchi@intel.com>
Fri, 18 Dec 2020 16:02:07 +0000 (08:02 -0800)
committerLucas De Marchi <lucas.demarchi@intel.com>
Mon, 28 Dec 2020 00:40:08 +0000 (16:40 -0800)
commit220b4c55ec219d6a9e10fc343df4691fbe5339b1
treea300c40b6ae0aa64697372f758fbccd813393542
parent4bd8586c208dd2a84049c7b8b7d20f79d932b999
depmod: unconditionally write builtin.alias.bin

The file is always created and unless we return an error, the temporary
file is renamed to its final destination. All other places write the
index without checking if the index is empty, so just do the same.

Reported-by: Joe Buehler <aspam@cox.net>
tools/depmod.c