diff options
author | starkos <none@none> | 2009-12-22 19:07:55 +0300 |
---|---|---|
committer | starkos <none@none> | 2009-12-22 19:07:55 +0300 |
commit | 3e038d7c58c1b027df9b669b6b762c194a1bc8dd (patch) | |
tree | fd21d194a4446f983b0c9dc683127f3501328635 /src/host/os_match.c | |
parent | ef677f0dece0c11101bd1ca6e934dedbc59f7286 (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.c | 2 |
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; |