Skip to content

Commit

Permalink
[mono][aot] Use g_strcasecmp () to check whenever aot input assemblie…
Browse files Browse the repository at this point in the history
…s are loaded from the correct location. (#90065)

Fixes #90030.
  • Loading branch information
vargaz authored Aug 7, 2023
1 parent 7a94213 commit edbd5c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mono/mono/mini/driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1414,7 +1414,7 @@ main_thread_handler (gpointer user_data)
MonoImage *img;

img = mono_image_open (main_args->argv [i], &status);
if (img && strcmp (img->name, assembly->image->name)) {
if (img && g_strcasecmp (img->name, assembly->image->name)) {
fprintf (stderr, "Error: Loaded assembly '%s' doesn't match original file name '%s'. Set MONO_PATH to the assembly's location.\n", assembly->image->name, img->name);
exit (1);
}
Expand Down

0 comments on commit edbd5c7

Please sign in to comment.