[mono][aot] Use g_strcasecmp () to check whenever aot input assemblies are loaded...
authorZoltan Varga <vargaz@gmail.com>
Mon, 7 Aug 2023 00:18:07 +0000 (20:18 -0400)
committerGitHub <noreply@github.com>
Mon, 7 Aug 2023 00:18:07 +0000 (20:18 -0400)
Fixes https://github.com/dotnet/runtime/issues/90030.

src/mono/mono/mini/driver.c

index fd77f6c..7842faa 100644 (file)
@@ -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);
                                }