cedric pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=43b18dc8903a79f091a39b6ed12f8aa82f23648a
commit 43b18dc8903a79f091a39b6ed12f8aa82f23648a Author: Wonki Kim <[email protected]> Date: Sat Nov 24 03:25:25 2018 +0000 elm_config: replace ecore_file_mv with ecore_file_cp eio_monitor could miss what it is tracking on in case of calling ecore_file_mv on the tracked file. so that this patch replace move with copy. Reviewed-by: Cedric BAIL <[email protected]> Differential Revision: https://phab.enlightenment.org/D7352 --- src/lib/elementary/elm_config.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib/elementary/elm_config.c b/src/lib/elementary/elm_config.c index 8d2545a170..963f17666a 100644 --- a/src/lib/elementary/elm_config.c +++ b/src/lib/elementary/elm_config.c @@ -777,7 +777,8 @@ _elm_config_profile_derived_save(const char *profile, Elm_Config_Derived *derive eet_close(ef); if (ret) { - ecore_file_mv(buf, buf2); + ecore_file_cp(buf, buf2); + ecore_file_unlink(buf); } else { @@ -2217,7 +2218,7 @@ _elm_config_profile_save(const char *profile) goto err; } - ret = ecore_file_mv(buf2, buf); + ret = ecore_file_cp(buf2, buf); if (!ret) { ERR("Error saving Elementary's configuration profile file"); @@ -2310,7 +2311,7 @@ _elm_config_save(Elm_Config *cfg, const char *profile) goto err; } - ret = ecore_file_mv(buf2, buf); + ret = ecore_file_cp(buf2, buf); if (!ret) { ERR("Error saving Elementary's configuration file"); --
