eolian: fail on scan file conflict
authorDaniel Kolesa <d.kolesa@samsung.com>
Mon, 6 May 2019 14:48:21 +0000 (16:48 +0200)
committerHermet Park <hermetpark@gmail.com>
Wed, 8 May 2019 04:32:33 +0000 (13:32 +0900)
If two files of the same name are found in the include paths,
the scan should fail.

src/lib/eolian/eolian_database.c

index 79da362..194ac06 100644 (file)
@@ -794,7 +794,7 @@ eolian_state_directory_add(Eolian_State *state, const char *dir)
 {
    if (!dir || !state) return EINA_FALSE;
    Scan_State sst = { state, EINA_TRUE };
-   return eina_file_dir_list(dir, EINA_TRUE, _scan_cb, &sst);
+   return eina_file_dir_list(dir, EINA_TRUE, _scan_cb, &sst) && sst.succ;
 }
 
 EAPI Eina_Bool