From c6eb911c93cfcf24458164bd3b40e88b7c88935f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Thu, 25 Aug 2011 19:01:05 +0000 Subject: Do case insensitive search for lua scripts to load. Skip files starting with . also on windows, as the home directory may be mounted from a server with a proper filesystem. svn path=/trunk/; revision=38737 --- epan/wslua/init_wslua.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'epan/wslua') diff --git a/epan/wslua/init_wslua.c b/epan/wslua/init_wslua.c index a3dcf548b0..37410a0829 100644 --- a/epan/wslua/init_wslua.c +++ b/epan/wslua/init_wslua.c @@ -293,17 +293,15 @@ static void lua_load_plugins (const char *dirname) continue; } -#ifndef _WIN32 /* skip files starting wih . */ if (name[0] == '.') { g_free(filename); continue; } -#endif /* skip anything but files with .lua suffix */ dot = strrchr(name, '.'); - if (dot == NULL || strcmp(dot+1, "lua") != 0) { + if (dot == NULL || g_ascii_strcasecmp(dot+1, "lua") != 0) { g_free(filename); continue; } -- cgit v1.2.3