From e12853fd831828ffe09811ffa74ad4761d3b9a59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20F=C3=A6r=C3=B8y?= Date: Sun, 16 Oct 2016 16:14:27 +0200 Subject: [PATCH] Use g_mkdir_with_parents instead of mkpath. --- configure.ac | 1 + src/otr/module.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index a122a737..a428d7a1 100644 --- a/configure.ac +++ b/configure.ac @@ -597,6 +597,7 @@ fi AH_TEMPLATE(HAVE_GMODULE) AH_TEMPLATE(HAVE_SOCKS_H, [misc..]) AH_TEMPLATE(HAVE_STATIC_PERL) +AH_TEMPLATE(HAVE_STATIC_OTR) AH_TEMPLATE(PRIuUOFF_T, [printf()-format for uoff_t, eg. "u" or "lu" or "llu"]) AH_TEMPLATE(UOFF_T_INT, [What type should be used for uoff_t]) AH_TEMPLATE(UOFF_T_LONG) diff --git a/src/otr/module.c b/src/otr/module.c index 6f65f531..b84dc4af 100644 --- a/src/otr/module.c +++ b/src/otr/module.c @@ -197,7 +197,7 @@ static void create_module_dir(void) g_error("Unable to allocate memory for OTR directory path."); if (stat(dir_path, &statbuf) != 0) { - if (mkpath(dir_path, 0700) != 0) + if (g_mkdir_with_parents(dir_path, 0700) != 0) g_error("Unable to create OTR directory path."); } else if (!S_ISDIR(statbuf.st_mode)) g_error("%s is not a directory.\nYou should remove it with command: rm %s", dir_path, dir_path);