in eet_list(), check whether the supplied glob is '*'. iirc raster said freebsd's fnmatch() didn't support '*' well so he added the same workaround to edje... and so it should be in libeet, too

SVN revision: 15779
This commit is contained in:
tsauerbeck 2005-07-14 16:51:28 +00:00 committed by tsauerbeck
parent a17aa10222
commit 63c5d7586c
1 changed files with 5 additions and 2 deletions

View File

@ -1007,8 +1007,11 @@ eet_list(Eet_File *ef, char *glob, int *count_ret)
{
for (efn = ef->header->directory->nodes[i]; efn; efn = efn->next)
{
/* if the entry matches the input glob */
if (!fnmatch(glob, efn->name, 0))
/* if the entry matches the input glob
* check for * explicitly, because on some systems, * isn't well
* supported
*/
if ((!strcmp (glob, "*")) || !fnmatch(glob, efn->name, 0))
{
char **new_list;