Enlightenment CVS committal
Author : devilhorns
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_config.c
Log Message:
Trap for "rename" error. Print the errno via perror.
Do we want to "error dialog" this ? Or provide some select case on the errno?
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_config.c,v
retrieving revision 1.239
retrieving revision 1.240
diff -u -3 -r1.239 -r1.240
--- e_config.c 12 Apr 2007 03:20:42 -0000 1.239
+++ e_config.c 22 Apr 2007 09:44:06 -0000 1.240
@@ -1757,8 +1757,15 @@
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);
}
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs