Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstarkos <none@none>2009-12-22 19:07:55 +0300
committerstarkos <none@none>2009-12-22 19:07:55 +0300
commit3e038d7c58c1b027df9b669b6b762c194a1bc8dd (patch)
treefd21d194a4446f983b0c9dc683127f3501328635 /src/host/os_match.c
parentef677f0dece0c11101bd1ca6e934dedbc59f7286 (diff)
Feature 2905303: Enable better folder matching in file lists
Diffstat (limited to 'src/host/os_match.c')
-rw-r--r--src/host/os_match.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/host/os_match.c b/src/host/os_match.c
index 9d8e89f..a267381 100644
--- a/src/host/os_match.c
+++ b/src/host/os_match.c
@@ -169,7 +169,7 @@ int os_matchnext(lua_State* L)
while (m->entry != NULL)
{
const char* name = m->entry->d_name;
- if (strcmp(name, ".") && strcmp(name,"..") && fnmatch(m->mask, name, 0) == 0)
+ if (name[0] != '.' && fnmatch(m->mask, name, 0) == 0)
{
lua_pushboolean(L, 1);
return 1;