From: Karel Zak Date: Fri, 21 Jan 2022 10:21:48 +0000 (+0100) Subject: libblkid: reset errno after failed floppy test X-Git-Tag: v2.38-rc1~47 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7cda56ae83ee172b1728ed42ae70afadc01e3667;p=thirdparty%2Futil-linux.git libblkid: reset errno after failed floppy test Signed-off-by: Karel Zak --- diff --git a/libblkid/src/probe.c b/libblkid/src/probe.c index 7fb4cf6414..6443f10091 100644 --- a/libblkid/src/probe.c +++ b/libblkid/src/probe.c @@ -937,6 +937,7 @@ int blkid_probe_set_device(blkid_probe pr, int fd, pr->fd = fd; } } + errno = 0; } #endif