summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2011-04-28 00:44:34 +0200
committerGravatar Martin Szulecki2011-04-28 00:44:34 +0200
commitde9cd870f92abe194904291887828fff9401d020 (patch)
tree9c05da0b860cf469ff6b00694c470d05851a1001
parent2f90d1d1c347b547219a5da5eff2557b07ce5323 (diff)
downloadlibimobiledevice-de9cd870f92abe194904291887828fff9401d020.tar.gz
libimobiledevice-de9cd870f92abe194904291887828fff9401d020.tar.bz2
idevicebackup2: Use g_mkdir_with_parents() for "creating directory" handler
-rw-r--r--tools/idevicebackup2.c2
1 files changed, 1 insertions, 1 deletions
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);