Commit e1740828 authored by Corey Bryant's avatar Corey Bryant Committed by Kevin Wolf
Browse files

block: Prevent detection of /dev/fdset/ as floppy

parent ba1c048a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1052,8 +1052,10 @@ static int floppy_probe_device(const char *filename)
    struct floppy_struct fdparam;
    struct stat st;

    if (strstart(filename, "/dev/fd", NULL))
    if (strstart(filename, "/dev/fd", NULL) &&
        !strstart(filename, "/dev/fdset/", NULL)) {
        prio = 50;
    }

    fd = open(filename, O_RDONLY | O_NONBLOCK);
    if (fd < 0) {