]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod: don't reset errno in kmod_file_load_zlib()
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 7 May 2025 13:24:36 +0000 (14:24 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 20 May 2025 02:51:43 +0000 (21:51 -0500)
commitdf0f98bd34e373b352deacf35abfd0795a7f864b
tree275079f51895946f1c7c43bc1c62d30a2694508b
parent879e5fabc60b054f14fdd83a764ba4f47814d2a6
libkmod: don't reset errno in kmod_file_load_zlib()

Currently we reset errno, shortly to be followed by an fcntl() and
gzdopen() calls. Both of those should set errno on failure and preserve
it on success.

Just leave errno as-is, we shouldn't be changing it in this context.

Reference: https://github.com/kmod-project/kmod/issues/244
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/346
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
libkmod/libkmod-file-zlib.c