forked from enlightenment/enlightenment
e_config: Fix file size detection
Dear all, I found a bug in e_config. The e didn't make the configuration backup files. It was because of my wrong patch (svn rev.64684). I fixed this bug. Please check the new patch file. Patch by Doyoun Kang SVN revision: 65224
This commit is contained in:
parent
9a8511aea0
commit
c2527ef23f
|
@ -1649,7 +1649,7 @@ e_config_profile_save(void)
|
|||
e_user_dir_snprintf(bsrc, sizeof(bsrc), "config/profile.%i.cfg", i - 1);
|
||||
e_user_dir_snprintf(bdst, sizeof(bdst), "config/profile.%i.cfg", i);
|
||||
if ((ecore_file_exists(bsrc)) &&
|
||||
(!ecore_file_size(bsrc)))
|
||||
(ecore_file_size(bsrc)))
|
||||
{
|
||||
ret = ecore_file_mv(bsrc, bdst);
|
||||
if (!ret)
|
||||
|
@ -1722,7 +1722,7 @@ e_config_domain_save(const char *domain, E_Config_DD *edd, const void *data)
|
|||
e_user_dir_snprintf(bsrc, sizeof(bsrc), "config/%s/%s.%i.cfg", _e_config_profile, domain, i - 1);
|
||||
e_user_dir_snprintf(bdst, sizeof(bdst), "config/%s/%s.%i.cfg", _e_config_profile, domain, i);
|
||||
if ((ecore_file_exists(bsrc)) &&
|
||||
(!ecore_file_size(bsrc)))
|
||||
(ecore_file_size(bsrc)))
|
||||
{
|
||||
ecore_file_mv(bsrc, bdst);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue