aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDiego Escalante Urrelo <descalante@igalia.com>2010-01-14 07:43:58 +0800
committerDiego Escalante Urrelo <diegoe@gnome.org>2010-01-14 07:45:05 +0800
commit7ba0a952949410eeb2b0ae81427d31697bbd7886 (patch)
tree2c4c9e1f1cde570dce8ee36e05ae2699715b5e23 /lib
parent0b732d26c9cd11b91f861b9a34389a2adc331b2b (diff)
downloadgsoc2013-epiphany-7ba0a952949410eeb2b0ae81427d31697bbd7886.tar.gz
gsoc2013-epiphany-7ba0a952949410eeb2b0ae81427d31697bbd7886.tar.zst
gsoc2013-epiphany-7ba0a952949410eeb2b0ae81427d31697bbd7886.zip
Use g_mkdir_with_parents instead of just mkdir
This ensures that if .gnome2/ doesn't exist, we don't fail instead of just creating the dir. Bug #605860
Diffstat (limited to 'lib')
-rw-r--r--lib/ephy-file-helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ephy-file-helpers.c b/lib/ephy-file-helpers.c
index 8777c9616..271d362a8 100644
--- a/lib/ephy-file-helpers.c
+++ b/lib/ephy-file-helpers.c
@@ -372,7 +372,7 @@ ephy_ensure_dir_exists (const char *dir,
}
if (!g_file_test (dir, G_FILE_TEST_EXISTS) &&
- mkdir (dir, 488) != 0)
+ g_mkdir_with_parents (dir, 488) != 0)
{
g_set_error (error,
EPHY_FILE_HELPERS_ERROR_QUARK,