]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
fix issue for image_black_list
authorlongpanda <admin@ventoy.net>
Mon, 15 Mar 2021 13:51:57 +0000 (21:51 +0800)
committerlongpanda <admin@ventoy.net>
Mon, 15 Mar 2021 13:51:57 +0000 (21:51 +0800)
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy.c
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_plugin.c

index 0fa8e5ce606fa1fe29e12b19d08f798dd2886027..925e554c60aeab1bd6853420192ef31a3bc6fca7 100644 (file)
@@ -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; 
             }
         }
index c50b1cad2af6a59eb2d75c621193eb1a19b63990..ebf3977e5b5d9bf501d01a4fad575f939761fb9b 100644 (file)
@@ -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;
     }