aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-migrate.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/e-shell-migrate.c')
-rw-r--r--shell/e-shell-migrate.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/shell/e-shell-migrate.c b/shell/e-shell-migrate.c
index 20e96960e4..f7de962fde 100644
--- a/shell/e-shell-migrate.c
+++ b/shell/e-shell-migrate.c
@@ -19,12 +19,15 @@
*
*/
-#include "e-shell-migrate.h"
-
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
+
+#include <errno.h>
#include <glib/gstdio.h>
#include <libedataserver/libedataserver.h>
+#include "e-shell-migrate.h"
#include "evo-version.h"
static gboolean
@@ -157,7 +160,9 @@ change_dir_modes (const gchar *path)
g_free (full_path);
}
- g_chmod (path, 0700);
+ if (g_chmod (path, 0700) == -1)
+ g_warning ("%s: Failed to chmod of '%s': %s", G_STRFUNC, path, g_strerror (errno));
+
g_dir_close (dir);
}