forked from enlightenment/enlightenment
e_util_glob functions now automatch when pointers are the same
This commit is contained in:
parent
d3468dd920
commit
9409f435a3
|
@ -68,6 +68,7 @@ e_util_glob_match(const char *str, const char *pattern)
|
|||
if (str[0] == 0) return 1;
|
||||
return 0;
|
||||
}
|
||||
if (str == pattern) return 1;
|
||||
if (!strcmp(pattern, "*")) return 1;
|
||||
if (!fnmatch(pattern, str, 0)) return 1;
|
||||
return 0;
|
||||
|
@ -79,6 +80,7 @@ e_util_glob_case_match(const char *str, const char *pattern)
|
|||
const char *p;
|
||||
char *tstr, *tglob, *tp;
|
||||
|
||||
if (str == pattern) return 1;
|
||||
if (pattern[0] == 0)
|
||||
{
|
||||
if (str[0] == 0) return 1;
|
||||
|
|
Loading…
Reference in New Issue