From: Mike Blumenkrantz 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: v1.0.0~435 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=79c2dfe87b37dc8a4631b7385288d3b4405bf834;p=platform%2Fupstream%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 SVN revision: 69026 --- 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;