[libgda] Gda-sql: create dir with parents if necessary
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Gda-sql: create dir with parents if necessary
- Date: Wed, 15 Sep 2010 14:08:19 +0000 (UTC)
commit b245bc90809a706ae90c11f47e1ccdcb7cf9d8b9
Author: Vivien Malerba <malerba gnome-db org>
Date: Wed Sep 15 15:24:48 2010 +0200
Gda-sql: create dir with parents if necessary
tools/tools-input.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tools/tools-input.c b/tools/tools-input.c
index 045a87d..c656132 100644
--- a/tools/tools-input.c
+++ b/tools/tools-input.c
@@ -268,7 +268,7 @@ init_history ()
cache_dir = g_build_filename (g_get_user_cache_dir (), "libgda", NULL);
history_file = g_build_filename (cache_dir, HISTORY_FILE, NULL);
if (!g_file_test (cache_dir, G_FILE_TEST_EXISTS)) {
- if (g_mkdir (cache_dir, 0700)) {
+ if (g_mkdir_with_parents (cache_dir, 0700)) {
g_free (history_file);
history_file = NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]