From 2710153a377a3f60aa1ecb5d9d4c0914b29ca246 Mon Sep 17 00:00:00 2001 From: Eduardo Lima Date: Mon, 21 May 2007 12:45:19 +0000 Subject: [PATCH] Using g_mkdir_with_parents() instead of g_mkdir() to really ensure the 2007-05-21 Eduardo Lima * 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 | 7 +++++++ libdocument/ev-file-helpers.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c4268ada..4a3420a9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-05-21 Eduardo Lima + + * 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 * shell/ev-sidebar.c: (ev_sidebar_add_page): diff --git a/libdocument/ev-file-helpers.c b/libdocument/ev-file-helpers.c index 5e83b3bc..82e85433 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) -- 2.43.5