From 26516ee3950bafe50da004a10731562ef0fbd4e3 Mon Sep 17 00:00:00 2001 From: Zoltan Varga Date: Sat, 5 Aug 2023 12:08:23 -0400 Subject: [PATCH] [mono][aot] Use g_strcasecmp () to check whenever aot input assemblies are loaded from the correct location. Fixes https://github.com/dotnet/runtime/issues/90030. --- src/mono/mono/mini/driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mono/mono/mini/driver.c b/src/mono/mono/mini/driver.c index fd77f6c803551b..7842faafe3494d 100644 --- a/src/mono/mono/mini/driver.c +++ b/src/mono/mono/mini/driver.c @@ -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); }