[gconf] Make directories with parents in case they don't exist



commit 226de65365e2d28e92457d54d6fbb5f4f54e94db
Author: William Jon McCann <jmccann redhat com>
Date:   Wed Apr 25 11:45:31 2012 -0400

    Make directories with parents in case they don't exist
    
    https://bugzilla.gnome.org/show_bug.cgi?id=646663

 gconf/gconfd.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gconf/gconfd.c b/gconf/gconfd.c
index d42ce1e..b6fb103 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);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]