Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEduardo Lima <eduardo.lima@indt.org.br>2007-05-21 12:45:19 (GMT)
committer Eduardo de Barros Lima <eblima@src.gnome.org>2007-05-21 12:45:19 (GMT)
commit2710153a377a3f60aa1ecb5d9d4c0914b29ca246 (patch)
tree8a0442cece9b951db90fa37760720a8cf81c4bd5
parent2966adf2bcca407400980b57509a2fa74f28fb19 (diff)
Using g_mkdir_with_parents() instead of g_mkdir() to really ensure the
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
-rw-r--r--ChangeLog7
-rw-r--r--libdocument/ev-file-helpers.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c4268ad..4a3420a 100644
--- 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):
diff --git a/libdocument/ev-file-helpers.c b/libdocument/ev-file-helpers.c
index 5e83b3b..82e8543 100644
--- a/libdocument/ev-file-helpers.c
+++ b/libdocument/ev-file-helpers.c
@@ -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)