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
This commit is contained in:
parent
6c4e49d970
commit
43b18dc890
|
@ -777,7 +777,8 @@ _elm_config_profile_derived_save(const char *profile, Elm_Config_Derived *derive
|
||||||
eet_close(ef);
|
eet_close(ef);
|
||||||
if (ret)
|
if (ret)
|
||||||
{
|
{
|
||||||
ecore_file_mv(buf, buf2);
|
ecore_file_cp(buf, buf2);
|
||||||
|
ecore_file_unlink(buf);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -2217,7 +2218,7 @@ _elm_config_profile_save(const char *profile)
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = ecore_file_mv(buf2, buf);
|
ret = ecore_file_cp(buf2, buf);
|
||||||
if (!ret)
|
if (!ret)
|
||||||
{
|
{
|
||||||
ERR("Error saving Elementary's configuration profile file");
|
ERR("Error saving Elementary's configuration profile file");
|
||||||
|
@ -2310,7 +2311,7 @@ _elm_config_save(Elm_Config *cfg, const char *profile)
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = ecore_file_mv(buf2, buf);
|
ret = ecore_file_cp(buf2, buf);
|
||||||
if (!ret)
|
if (!ret)
|
||||||
{
|
{
|
||||||
ERR("Error saving Elementary's configuration file");
|
ERR("Error saving Elementary's configuration file");
|
||||||
|
|
Loading…
Reference in New Issue