mirror of
https://github.com/irssi/irssi.git
synced 2026-08-22 18:12:12 +02:00
Use g_mkdir_with_parents instead of mkpath.
This commit is contained in:
parent
5877d5b4e0
commit
e12853fd83
2 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue