summaryrefslogtreecommitdiff
path: root/src/lib/elementary
diff options
context:
space:
mode:
authorWonki Kim <wonki_.kim@samsung.com>2018-11-24 03:25:25 +0000
committerCedric BAIL <cedric@osg.samsung.com>2018-11-28 16:22:16 -0800
commit43b18dc8903a79f091a39b6ed12f8aa82f23648a (patch)
treeb252d585f2fd519fc5cbbed2c975b85d76d6bcc1 /src/lib/elementary
parent6c4e49d970ca6046780ba1b9fb226f465d14a497 (diff)
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 <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D7352
Diffstat (limited to 'src/lib/elementary')
-rw-r--r--src/lib/elementary/elm_config.c7
1 files 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
777 eet_close(ef); 777 eet_close(ef);
778 if (ret) 778 if (ret)
779 { 779 {
780 ecore_file_mv(buf, buf2); 780 ecore_file_cp(buf, buf2);
781 ecore_file_unlink(buf);
781 } 782 }
782 else 783 else
783 { 784 {
@@ -2217,7 +2218,7 @@ _elm_config_profile_save(const char *profile)
2217 goto err; 2218 goto err;
2218 } 2219 }
2219 2220
2220 ret = ecore_file_mv(buf2, buf); 2221 ret = ecore_file_cp(buf2, buf);
2221 if (!ret) 2222 if (!ret)
2222 { 2223 {
2223 ERR("Error saving Elementary's configuration profile file"); 2224 ERR("Error saving Elementary's configuration profile file");
@@ -2310,7 +2311,7 @@ _elm_config_save(Elm_Config *cfg, const char *profile)
2310 goto err; 2311 goto err;
2311 } 2312 }
2312 2313
2313 ret = ecore_file_mv(buf2, buf); 2314 ret = ecore_file_cp(buf2, buf);
2314 if (!ret) 2315 if (!ret)
2315 { 2316 {
2316 ERR("Error saving Elementary's configuration file"); 2317 ERR("Error saving Elementary's configuration file");