From 63c5d7586c3b99b83c37fc7a8ef9a3790e847a4a Mon Sep 17 00:00:00 2001 From: tsauerbeck Date: Thu, 14 Jul 2005 16:51:28 +0000 Subject: [PATCH] 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 --- legacy/eet/src/lib/eet_lib.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/legacy/eet/src/lib/eet_lib.c b/legacy/eet/src/lib/eet_lib.c index e100809054..a60442d9f4 100644 --- a/legacy/eet/src/lib/eet_lib.c +++ b/legacy/eet/src/lib/eet_lib.c @@ -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;