diff options
| author | 2010-01-25 15:45:01 +0100 | |
|---|---|---|
| committer | 2010-01-25 15:45:01 +0100 | |
| commit | ec67ba628c688d8c0a01c7f5901155797be7b510 (patch) | |
| tree | 3c96dde34d56fd1b33210ba5ab56a44c4424ddd4 | |
| parent | de9b690877c4581a4e846743efa26aa75759d074 (diff) | |
| download | libimobiledevice-ec67ba628c688d8c0a01c7f5901155797be7b510.tar.gz libimobiledevice-ec67ba628c688d8c0a01c7f5901155797be7b510.tar.bz2 | |
Remove the manifest file if it is supplied in the last backup message
| -rw-r--r-- | tools/iphonebackup.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/iphonebackup.c b/tools/iphonebackup.c index c0f2276..15a0495 100644 --- a/tools/iphonebackup.c +++ b/tools/iphonebackup.c | |||
| @@ -603,8 +603,7 @@ int main(int argc, char *argv[]) | |||
| 603 | node_tmp = plist_array_get_item(message, 1); | 603 | node_tmp = plist_array_get_item(message, 1); |
| 604 | manifest_plist = plist_dict_get_item(node_tmp, "BackupManifestKey"); | 604 | manifest_plist = plist_dict_get_item(node_tmp, "BackupManifestKey"); |
| 605 | if (manifest_plist) { | 605 | if (manifest_plist) { |
| 606 | if (stat(manifest_path, &st) != 0) | 606 | remove(manifest_path); |
| 607 | remove(manifest_path); | ||
| 608 | printf("Storing Manifest.plist...\n"); | 607 | printf("Storing Manifest.plist...\n"); |
| 609 | plist_write_to_filename(manifest_plist, manifest_path, PLIST_FORMAT_XML); | 608 | plist_write_to_filename(manifest_plist, manifest_path, PLIST_FORMAT_XML); |
| 610 | } | 609 | } |
