in eet_list(), check whether the supplied glob is '*'. iirc raster said freebsd's...
authortsauerbeck <tsauerbeck>
Thu, 14 Jul 2005 16:51:28 +0000 (16:51 +0000)
committertsauerbeck <tsauerbeck@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 14 Jul 2005 16:51:28 +0000 (16:51 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/e17/libs/eet@15779 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/eet_lib.c

index e100809..a60442d 100644 (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;