mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
Replace mkpath with g_mkdir_with_parents
This commit is contained in:
parent
1a6ec1b0b6
commit
bb190be0bf
6 changed files with 4 additions and 44 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue