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:
Christopher Michael 2007-04-22 09:44:06 +00:00
parent ef8e3d10bf
commit 6db12642ac
1 changed files with 9 additions and 2 deletions

View File

@ -1757,8 +1757,15 @@ e_config_profile_save(void)
strlen(_e_config_profile), 0);
if (_e_config_eet_close_handle(ef, buf2))
{
rename(buf2, buf);
/* FIXME: get rename err */
int ret;
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);
}