]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: reset errno after failed floppy test
authorKarel Zak <kzak@redhat.com>
Fri, 21 Jan 2022 10:21:48 +0000 (11:21 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 21 Jan 2022 10:21:48 +0000 (11:21 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/probe.c

index 7fb4cf64144578f7d767c6399a3892ed07e93818..6443f10091798f6f1d99ee09a0eb7149e215b185 100644 (file)
@@ -937,6 +937,7 @@ int blkid_probe_set_device(blkid_probe pr, int fd,
                                pr->fd = fd;
                        }
                }
+               errno = 0;
        }
 #endif