mirror of
https://git.proxmox.com/git/grub2
synced 2025-07-31 19:47:38 +00:00
search: actually skip floppy with --no-floppy
grub_device_iterate() ignores device when iterator returns 1, not 0. Reported by Carlos E. R. <robin.listas@telefonica.net>
This commit is contained in:
parent
15dfea842c
commit
1b782e902e
@ -64,7 +64,7 @@ iterate_device (const char *name, void *data)
|
|||||||
/* Skip floppy drives when requested. */
|
/* Skip floppy drives when requested. */
|
||||||
if (ctx->no_floppy &&
|
if (ctx->no_floppy &&
|
||||||
name[0] == 'f' && name[1] == 'd' && name[2] >= '0' && name[2] <= '9')
|
name[0] == 'f' && name[1] == 'd' && name[2] >= '0' && name[2] <= '9')
|
||||||
return 0;
|
return 1;
|
||||||
|
|
||||||
#ifdef DO_SEARCH_FS_UUID
|
#ifdef DO_SEARCH_FS_UUID
|
||||||
#define compare_fn grub_strcasecmp
|
#define compare_fn grub_strcasecmp
|
||||||
|
Loading…
Reference in New Issue
Block a user