From f6207619b34c714110c683d477c557fdf1360cbb Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Sat, 16 Feb 2013 10:25:42 +0000 Subject: [PATCH] elementary: Use eina_file_stat_ls() when listing profiles The eina_file_stat_ls() function should be used instead of eina_file_direct_ls() in _elm_config_profiles_list() - since it checks for file types. Patch by "Paulo C. A. Cavalcanti Jr" SVN revision: 83979 --- legacy/elementary/AUTHORS | 1 + legacy/elementary/ChangeLog | 4 ++++ legacy/elementary/NEWS | 1 + legacy/elementary/src/lib/elm_config.c | 2 +- 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/legacy/elementary/AUTHORS b/legacy/elementary/AUTHORS index 94f5e00c25..6da6dc61fa 100644 --- a/legacy/elementary/AUTHORS +++ b/legacy/elementary/AUTHORS @@ -76,3 +76,4 @@ JaeHyun Jo Bora Hwang Jiyoung Choi Arvind R +Paulo C. A. Cavalcanti Jr diff --git a/legacy/elementary/ChangeLog b/legacy/elementary/ChangeLog index 3e65d0ea25..26d91b55dd 100644 --- a/legacy/elementary/ChangeLog +++ b/legacy/elementary/ChangeLog @@ -1021,3 +1021,7 @@ 2013-02-15 ChunEon Park (Hermet) * support naviframe, button, label orientation mode. + +2013-02-16 Paulo C. A. Cavalcanti Jr + + * Fix elm_config to properly check file type. diff --git a/legacy/elementary/NEWS b/legacy/elementary/NEWS index 12589559de..8ab7ce80aa 100644 --- a/legacy/elementary/NEWS +++ b/legacy/elementary/NEWS @@ -148,6 +148,7 @@ Fixes: * Fix a elm_transit crash issue when user delete all target objects in the effect end callback. * Fix elc_player pause state to be in sync * Fix time string display to handle hours right + * Fix elm_config to properly check file type. Removals: diff --git a/legacy/elementary/src/lib/elm_config.c b/legacy/elementary/src/lib/elm_config.c index ff346f4619..48f1c53fe9 100644 --- a/legacy/elementary/src/lib/elm_config.c +++ b/legacy/elementary/src/lib/elm_config.c @@ -792,7 +792,7 @@ sys: strlen(_elm_data_dir), "config", sizeof("config") - 1); - file_it = eina_file_direct_ls(buf); + file_it = eina_file_stat_ls(buf); if (!file_it) goto list_free;