From 604337ccc7b2ec1b6fc22885b5ef02f7bb5b2f9a Mon Sep 17 00:00:00 2001 From: TingPing Date: Thu, 30 Jan 2014 21:42:03 -0500 Subject: Make all parent directories when creating configdir --- src/common/cfgfiles.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/common/cfgfiles.c b/src/common/cfgfiles.c index 489eeda2..b7a8beda 100644 --- a/src/common/cfgfiles.c +++ b/src/common/cfgfiles.c @@ -926,7 +926,7 @@ make_config_dirs (void) { char *buf; - if (g_mkdir (get_xdir (), 0700) != 0) + if (g_mkdir_with_parents (get_xdir (), 0700) != 0) return -1; buf = g_build_filename (get_xdir (), "addons", NULL); -- cgit 1.4.1