1
0
mirror of https://github.com/ventoy/Ventoy.git synced 2025-03-31 01:33:45 -04:00

fix issue for image_black_list

This commit is contained in:
longpanda 2021-03-15 21:51:57 +08:00
parent 1e12969555
commit 5d3285356e
2 changed files with 2 additions and 2 deletions
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy

@ -1335,7 +1335,7 @@ static int ventoy_collect_img_files(const char *filename, const struct grub_dirh
} }
else if (VENTOY_IMG_BLACK_LIST == g_plugin_image_list && index > 0) else if (VENTOY_IMG_BLACK_LIST == g_plugin_image_list && index > 0)
{ {
debug("File %s found in image_blacklist plugin config...\n", g_img_swap_tmp_buf); debug("File %s found in image_blacklist plugin config %d ...\n", g_img_swap_tmp_buf, index);
return 0; return 0;
} }
} }

@ -1744,7 +1744,7 @@ static int ventoy_plugin_image_list_entry(VTOY_JSON *json, const char *isodisk)
g_image_list_head = NULL; g_image_list_head = NULL;
} }
if (grub_strcmp(json->pcName, "image_blacklist") == 0) if (grub_strncmp(json->pcName, "image_blacklist", 15) == 0)
{ {
g_plugin_image_list = VENTOY_IMG_BLACK_LIST; g_plugin_image_list = VENTOY_IMG_BLACK_LIST;
} }