From 5d3285356e81385da039abbd2a7421390592ab87 Mon Sep 17 00:00:00 2001 From: longpanda Date: Mon, 15 Mar 2021 21:51:57 +0800 Subject: [PATCH] fix issue for image_black_list --- GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy.c | 2 +- GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_plugin.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy.c b/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy.c index 0fa8e5ce..925e554c 100644 --- a/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy.c +++ b/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy.c @@ -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) { - 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; } } diff --git a/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_plugin.c b/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_plugin.c index c50b1cad..ebf3977e 100644 --- a/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_plugin.c +++ b/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_plugin.c @@ -1744,7 +1744,7 @@ static int ventoy_plugin_image_list_entry(VTOY_JSON *json, const char *isodisk) 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; }