]> 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)
committerThomas Weißschuh <thomas@t-8ch.de>
Mon, 2 Oct 2023 11:21:05 +0000 (13:21 +0200)
commita33a11e27268cd354e9ce8c4ffeea31d84cef907
tree08578d180c4dd98734430101c7c1aeb7a8a0b8ef
parentc38162bf27028a61f5cbea8866faa626f01e60d9
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