From: discomfitor Date: Wed, 7 Mar 2012 20:01:17 +0000 (+0000) Subject: now I'm not going to point any fingers here glima, but this was not the proper way... X-Git-Tag: REL_F_I9500_20120323_1~17^2~162 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0977f8e024ade6f9d5a4aa7539ca8ca1506ed2be;p=framework%2Fuifw%2Felementary.git now I'm not going to point any fingers here glima, but this was not the proper way to use eina file and broke profile support in elm for the past year or so git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@69026 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/elm_config.c b/src/lib/elm_config.c index 9c90467..a866bf5 100644 --- a/src/lib/elm_config.c +++ b/src/lib/elm_config.c @@ -563,7 +563,7 @@ _elm_config_text_classes_free(Eina_List *l) Eina_List * _elm_config_profiles_list(void) { - const Eina_File_Direct_Info *info; + Eina_File_Direct_Info *info; Eina_List *flist = NULL; Eina_Iterator *file_it; char buf[PATH_MAX]; @@ -583,6 +583,13 @@ _elm_config_profiles_list(void) EINA_ITERATOR_FOREACH(file_it, info) { + Eina_Stat st; + + if (eina_file_statat(eina_iterator_container_get(file_it), info, &st)) + { + ERR("this is bad."); + continue; + } if (info->name_length >= len) continue;