diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2011-08-25 19:01:05 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2011-08-25 19:01:05 +0000 |
commit | c6eb911c93cfcf24458164bd3b40e88b7c88935f (patch) | |
tree | 5f9142e8c750f2be2112102f119297dd41c0b09d /epan/wslua | |
parent | f7956e0e1df23251c86b7dd6fb125dde3b3a9ceb (diff) |
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
Diffstat (limited to 'epan/wslua')
-rw-r--r-- | epan/wslua/init_wslua.c | 4 |
1 files changed, 1 insertions, 3 deletions
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; } |