[evolution-data-server/gnome-2-30] Create the configdir instead of bailing out if it does not exist (cherry picked from commit 3e78b5ce
- From: David Woodhouse <dwmw2 src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/gnome-2-30] Create the configdir instead of bailing out if it does not exist (cherry picked from commit 3e78b5ce
- Date: Fri, 11 Jun 2010 14:50:08 +0000 (UTC)
commit d47608922c8823e8978322050e09d4fb9b2c947a
Author: Fridrich Å trba <fridrich strba bluewin ch>
Date: Mon May 31 13:04:24 2010 +0200
Create the configdir instead of bailing out if it does not exist
(cherry picked from commit 3e78b5cee6172daa37f8e02c2edc8d295f670361)
camel/camel.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/camel/camel.c b/camel/camel.c
index 41c0a36..bc14b2e 100644
--- a/camel/camel.c
+++ b/camel/camel.c
@@ -98,6 +98,10 @@ camel_init (const gchar *configdir, gboolean nss_init)
nss_configdir = g_win32_locale_filename_from_utf8 (configdir);
#endif
+ /* Create the configdir if it does not exist
+ * This prevents camel from bailing out on first run */
+ g_mkdir_with_parents (configdir, 0700);
+
/* XXX Currently we store the new shared NSS database in the
* same location we kept the original NSS databases in,
* but at least we have safe shared access between Camel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]