]> www.fi.muni.cz Git - evince.git/commitdiff
Using g_mkdir_with_parents() instead of g_mkdir() to really ensure the
authorEduardo Lima <eduardo.lima@indt.org.br>
Mon, 21 May 2007 12:45:19 +0000 (12:45 +0000)
committerEduardo de Barros Lima <eblima@src.gnome.org>
Mon, 21 May 2007 12:45:19 +0000 (12:45 +0000)
2007-05-21  Eduardo Lima <eduardo.lima@indt.org.br>

* libdocument/ev-file-helpers.c: (ensure_dir_exists):

Using g_mkdir_with_parents() instead of g_mkdir() to really ensure the
directory exists.

svn path=/trunk/; revision=2471

ChangeLog
libdocument/ev-file-helpers.c

index c4268ada484d5c5831f1ee0ae95cb6b40bdeeeea..4a3420a9f29658cddb10d462b51810a550ae9c85 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-05-21  Eduardo Lima <eduardo.lima@indt.org.br>
+
+       * libdocument/ev-file-helpers.c: (ensure_dir_exists):
+
+       Using g_mkdir_with_parents() instead of g_mkdir() to really ensure the
+       directory exists.
+
 2007-05-20  Wouter Bolsterlee  <wbolster@svn.gnome.org>
 
        * shell/ev-sidebar.c: (ev_sidebar_add_page):
index 5e83b3bc957c1376ca305f906e873848a9b5a29d..82e854336ec90793d0f15eb60cd61dab65848bda 100644 (file)
@@ -50,7 +50,7 @@ ensure_dir_exists (const char *dir)
        if (g_file_test (dir, G_FILE_TEST_IS_DIR))
                return TRUE;
        
-       if (g_mkdir (dir, 488) == 0)
+       if (g_mkdir_with_parents (dir, 488) == 0)
                return TRUE;
 
        if (errno == EEXIST)