]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod: Do not set errno in libkmod-index
authorMax Kunzelmann <maxdev@posteo.de>
Tue, 12 Nov 2024 21:49:41 +0000 (22:49 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 19 Nov 2024 06:04:54 +0000 (00:04 -0600)
commiteb82bae2729801a0575d1d45b04d90b094f70e8f
tree734fc78c2232651099301275ee3210d21706d00c
parentc6b4652dd95e8aa9c37c5d19f765ce693bb042be
libkmod: Do not set errno in libkmod-index

Don't set errno in read functions ad it's a libc interface which we
should not be overriding. None of the functions up the call stack (some
examples) check on it.

Signed-off-by: Max Kunzelmann <maxdev@posteo.de>
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/240
[ Reword commit message according to suggestion by Emil and remove
  inline ]
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
libkmod/libkmod-index.c