forked from enlightenment/enlightenment
Trap for "rename" error. Print the errno via perror.
Do we want to "error dialog" this ? Or provide some select case on the errno? SVN revision: 29650
This commit is contained in:
parent
ef8e3d10bf
commit
6db12642ac
|
@ -1757,8 +1757,15 @@ e_config_profile_save(void)
|
||||||
strlen(_e_config_profile), 0);
|
strlen(_e_config_profile), 0);
|
||||||
if (_e_config_eet_close_handle(ef, buf2))
|
if (_e_config_eet_close_handle(ef, buf2))
|
||||||
{
|
{
|
||||||
rename(buf2, buf);
|
int ret;
|
||||||
/* FIXME: get rename err */
|
|
||||||
|
ret = rename(buf2, buf);
|
||||||
|
if (ret < 0)
|
||||||
|
{
|
||||||
|
/* FIXME: do we want to trap individual errno
|
||||||
|
and provide a short blurp to the user? */
|
||||||
|
perror("rename");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
ecore_file_unlink(buf2);
|
ecore_file_unlink(buf2);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue