summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Jon McCann <jmccann@redhat.com>2012-04-25 11:45:31 -0400
committerWilliam Jon McCann <jmccann@redhat.com>2012-04-25 14:03:01 -0400
commit226de65365e2d28e92457d54d6fbb5f4f54e94db (patch)
treecfcb584c692e65bf155320643d2434281864d0cc
parent9de1fae218b3039408dce4325d30ce62ec4f66cf (diff)
downloadgconf-226de65365e2d28e92457d54d6fbb5f4f54e94db.tar.gz
Make directories with parents in case they don't exist
https://bugzilla.gnome.org/show_bug.cgi?id=646663
-rw-r--r--gconf/gconfd.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gconf/gconfd.c b/gconf/gconfd.c
index d42ce1e7..b6fb103f 100644
--- a/gconf/gconfd.c
+++ b/gconf/gconfd.c
@@ -1755,9 +1755,9 @@ open_append_handle (GError **err)
get_log_names (&logdir, &logfile);
- g_mkdir (logdir, 0700); /* ignore failure, we'll catch failures
- * that matter on open()
- */
+ g_mkdir_with_parents (logdir, 0700); /* ignore failure, we'll catch failures
+ * that matter on open()
+ */
append_handle = g_fopen (logfile, "a");
@@ -1832,9 +1832,9 @@ logfile_save (void)
get_log_names (&logdir, &logfile);
- g_mkdir (logdir, 0700); /* ignore failure, we'll catch failures
- * that matter on open()
- */
+ g_mkdir_with_parents (logdir, 0700); /* ignore failure, we'll catch failures
+ * that matter on open()
+ */
saveme = g_string_new (NULL);