]> 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:07:43 +0000 (13:07 +0200)
commit8b1dbe49727bad9bd009306ab8921d06fd91b38a
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