From: Eduardo Lima Date: Mon, 21 May 2007 12:45:19 +0000 (+0000) Subject: Using g_mkdir_with_parents() instead of g_mkdir() to really ensure the X-Git-Tag: EVINCE_0_9_1~31 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=2710153a377a3f60aa1ecb5d9d4c0914b29ca246;p=evince.git 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 --- 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)