mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-04-16 07:26:22 +00:00
Merge e9540fb14a7dcc4b5dbe03249c5a90836c315c5b into 2dafe755097057a4faf5e240f0abc98b9b4cdcb8
This commit is contained in:
commit
268fb36674
@ -66,7 +66,7 @@ iterate_device (const char *name, void *data)
|
||||
int found = 0;
|
||||
|
||||
/* Skip floppy drives when requested. */
|
||||
if (ctx->no_floppy &&
|
||||
if (ctx->no_floppy && strlen(name) > 2 &&
|
||||
name[0] == 'f' && name[1] == 'd' && name[2] >= '0' && name[2] <= '9')
|
||||
return 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user