summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2011-01-05 23:08:49 +0100
committerGravatar Martin Szulecki2011-04-11 19:42:19 +0200
commit06fe3777633b9231879ba8087acf7803e359680f (patch)
treebe5aa8abcb98bd97a8c61bb4a1a582984d17f03a
parent1129d1deb4b49305fce121a20b0f5983110f4d62 (diff)
downloadlibimobiledevice-06fe3777633b9231879ba8087acf7803e359680f.tar.gz
libimobiledevice-06fe3777633b9231879ba8087acf7803e359680f.tar.bz2
idevicebackup4: make sure the backup device subdir exists on backup
This is required so that the Info.plist file can be written. Perhaps writing of the Info.plist should be moved to the end later.
-rw-r--r--tools/idevicebackup4.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/idevicebackup4.c b/tools/idevicebackup4.c
index 1944a7a..c4ee847 100644
--- a/tools/idevicebackup4.c
+++ b/tools/idevicebackup4.c
@@ -1474,6 +1474,12 @@ checkpoint:
1474 switch(cmd) { 1474 switch(cmd) {
1475 case CMD_BACKUP: 1475 case CMD_BACKUP:
1476 printf("Starting backup...\n"); 1476 printf("Starting backup...\n");
1477
1478 /* make sure backup device sub-directory exists */
1479 gchar *devbackupdir = g_build_path(G_DIR_SEPARATOR_S, backup_directory, uuid, NULL);
1480 g_mkdir(devbackupdir, 0755);
1481 g_free(devbackupdir);
1482
1477 /* TODO: check domain com.apple.mobile.backup key RequiresEncrypt and WillEncrypt with lockdown */ 1483 /* TODO: check domain com.apple.mobile.backup key RequiresEncrypt and WillEncrypt with lockdown */
1478 /* TODO: verify battery on AC enough battery remaining */ 1484 /* TODO: verify battery on AC enough battery remaining */
1479 1485