q66 pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=940209b8b5396b415266a5eebde40df9bf9548b6

commit 940209b8b5396b415266a5eebde40df9bf9548b6
Author: Daniel Kolesa <d.kol...@osg.samsung.com>
Date:   Thu Sep 24 14:03:49 2015 +0100

    eolian: use fully sanitized path names everywhere
---
 src/lib/eolian/eolian_database.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/lib/eolian/eolian_database.c b/src/lib/eolian/eolian_database.c
index 6357c71..08d5bfa 100644
--- a/src/lib/eolian/eolian_database.c
+++ b/src/lib/eolian/eolian_database.c
@@ -218,7 +218,7 @@ join_path(const char *path, const char *file)
    eina_strbuf_append_char(buf, '/');
    eina_strbuf_append(buf, file);
 
-   ret = eina_strbuf_string_steal(buf);
+   ret = eina_file_path_sanitize(eina_strbuf_string_get(buf));
    eina_strbuf_free(buf);
    return ret;
 }
@@ -322,7 +322,10 @@ eolian_file_parse(const char *filepath)
      }
    if (!(eopath = eina_hash_find(is_eo ? _filenames : _tfilenames, filepath)))
      eopath = filepath;
-   return eo_parser_database_fill(eopath, !is_eo);
+   char *vpath = eina_file_path_sanitize(eopath);
+   Eina_Bool ret = eo_parser_database_fill(vpath, !is_eo);
+   free(vpath);
+   return ret;
 }
 
 static Eina_Bool _tfile_parse(const Eina_Hash *hash EINA_UNUSED, const void 
*key EINA_UNUSED, void *data, void *fdata)

-- 


Reply via email to