From 6db12642ac9e7f5d1a9773bf712d840a5367ac42 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Sun, 22 Apr 2007 09:44:06 +0000 Subject: [PATCH] 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 --- src/bin/e_config.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/bin/e_config.c b/src/bin/e_config.c index 2eba65860..d95606c83 100644 --- a/src/bin/e_config.c +++ b/src/bin/e_config.c @@ -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); }