summaryrefslogtreecommitdiff
path: root/src/core/settings.c
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2016-02-13 13:12:29 +0100
committerLemonBoy <thatlemon@gmail.com>2016-06-05 16:24:55 +0200
commitbb190be0bfac956ada4f74a514ff70f28b114efa (patch)
tree5abd9b45a6a65e0f0ed02e1885a4c2b671367718 /src/core/settings.c
parent1a6ec1b0b63c4ffbaf22137157a6fae3570b6839 (diff)
downloadirssi-bb190be0bfac956ada4f74a514ff70f28b114efa.zip
Replace mkpath with g_mkdir_with_parents
Diffstat (limited to 'src/core/settings.c')
-rw-r--r--src/core/settings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/settings.c b/src/core/settings.c
index 8e493124..17fc4115 100644
--- a/src/core/settings.c
+++ b/src/core/settings.c
@@ -683,7 +683,7 @@ static void init_configfile(void)
if (stat(get_irssi_dir(), &statbuf) != 0) {
/* ~/.irssi not found, create it. */
- if (mkpath(get_irssi_dir(), 0700) != 0) {
+ if (g_mkdir_with_parents(get_irssi_dir(), 0700) != 0) {
g_error("Couldn't create %s directory", get_irssi_dir());
}
} else if (!S_ISDIR(statbuf.st_mode)) {