]> git.ipfire.org Git - thirdparty/kmod.git/commit
depmod: Check fstatat return value
authorTobias Stoeckmann <tobias@stoeckmann.org>
Wed, 6 Nov 2024 21:22:35 +0000 (22:22 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Thu, 7 Nov 2024 20:31:20 +0000 (14:31 -0600)
commita55c094d2168f79089f7c40f93661f4fb388513f
tree556897e886603f65163a23bc7884989cff1fa39d
parentaad7c6973bc420dde86870b73ed4efecacfa95ac
depmod: Check fstatat return value

If fstatat fails, do not access the uninitialized variable st.
Instead, filter the file out.

Basically synchronization with libkmod's conf_files_filter_out.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Link: https://github.com/kmod-project/kmod/pull/230
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
tools/depmod.c