forked from enlightenment/efl
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:
parent
a17aa10222
commit
63c5d7586c
|
@ -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)
|
for (efn = ef->header->directory->nodes[i]; efn; efn = efn->next)
|
||||||
{
|
{
|
||||||
/* if the entry matches the input glob */
|
/* if the entry matches the input glob
|
||||||
if (!fnmatch(glob, efn->name, 0))
|
* check for * explicitly, because on some systems, * isn't well
|
||||||
|
* supported
|
||||||
|
*/
|
||||||
|
if ((!strcmp (glob, "*")) || !fnmatch(glob, efn->name, 0))
|
||||||
{
|
{
|
||||||
char **new_list;
|
char **new_list;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue