]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libfdisk: reset errno before calling read()
authorThomas Weißschuh <thomas@t-8ch.de>
Mon, 2 Oct 2023 11:01:47 +0000 (13:01 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 24 Nov 2023 09:58:11 +0000 (10:58 +0100)
commit41599054c7248f12c8a54d02f7161d0aff4275a9
treec64db35e0b5ee58d2e24431cd0f19d20ff21e875
parentcce4e44059405f3170b166fbf1774bf4b89c11c4
libfdisk: reset errno before calling read()

The else branch will be executed on short reads.
For those errno is not reset so a random left-over errno value may be
checked.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
libfdisk/src/utils.c