Replace mkpath with g_mkdir_with_parents

This commit is contained in:
LemonBoy 2016-02-13 13:12:29 +01:00
commit bb190be0bf
6 changed files with 4 additions and 44 deletions

View file

@ -114,7 +114,7 @@ int log_start_logging(LOG_REC *log)
/* path may contain variables (%time, $vars),
make sure the directory is created */
dir = g_path_get_dirname(log->real_fname);
mkpath(dir, log_dir_create_mode);
g_mkdir_with_parents(dir, log_dir_create_mode);
g_free(dir);
}