From: Fridrich Štrba Date: Mon, 31 May 2010 11:04:24 +0000 (+0200) Subject: Create the configdir instead of bailing out if it does not exist X-Git-Tag: upstream/3.7.4~3057 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3e78b5cee6172daa37f8e02c2edc8d295f670361;p=platform%2Fupstream%2Fevolution-data-server.git Create the configdir instead of bailing out if it does not exist --- diff --git a/camel/camel.c b/camel/camel.c index b5d19b7..c1da6fb 100644 --- a/camel/camel.c +++ b/camel/camel.c @@ -94,6 +94,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