"docs/vscode:/vscode.git/clone" did not exist on "43b4632b8dd37cf6a35010dd9e43525f44ea6dde"
Commit 5d328535 authored by longpanda's avatar longpanda
Browse files

fix issue for image_black_list

parent 1e129695
......@@ -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;
}
}
......
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment