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);