]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libfdisk: reset context FD on error
authoryangzz-97 <70520104+yangzz-97@users.noreply.github.com>
Sun, 6 Sep 2020 10:30:48 +0000 (18:30 +0800)
committerKarel Zak <kzak@redhat.com>
Mon, 7 Sep 2020 10:09:36 +0000 (12:09 +0200)
commit933f095feb6c695e02c9989d091c76cc1b8d6d4c
tree1b8d5805a173e0f01d70aaed057ed90bf381f31c
parentf29a2cfbe18ecc165f188b2df572be01a74e1ec5
libfdisk: reset context FD on error

When the query disk fails, reset cxt->dev_fd.

Addresses: https://github.com/karelzak/util-linux/pull/1137
Addresses: https://github.com/karelzak/util-linux/issues/1131
Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk/src/context.c