From de9cd870f92abe194904291887828fff9401d020 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Thu, 28 Apr 2011 00:44:34 +0200 Subject: idevicebackup2: Use g_mkdir_with_parents() for "creating directory" handler --- tools/idevicebackup2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c index 263a1c1..442ce14 100644 --- a/tools/idevicebackup2.c +++ b/tools/idevicebackup2.c @@ -951,7 +951,7 @@ static void mb2_handle_make_directory(plist_t message, const char *backup_dir) gchar *newpath = g_build_path(G_DIR_SEPARATOR_S, backup_dir, str, NULL); g_free(str); - if (mkdir(newpath, 0755) < 0) { + if (g_mkdir_with_parents(newpath, 0755) < 0) { errdesc = strerror(errno); if (errno != EEXIST) { printf("mkdir: %s (%d)\n", errdesc, errno); -- cgit v1.1-32-gdbae