summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2010-01-25 15:45:01 +0100
committerGravatar Martin Szulecki2010-01-25 15:45:01 +0100
commitec67ba628c688d8c0a01c7f5901155797be7b510 (patch)
tree3c96dde34d56fd1b33210ba5ab56a44c4424ddd4 /tools
parentde9b690877c4581a4e846743efa26aa75759d074 (diff)
downloadlibimobiledevice-ec67ba628c688d8c0a01c7f5901155797be7b510.tar.gz
libimobiledevice-ec67ba628c688d8c0a01c7f5901155797be7b510.tar.bz2
Remove the manifest file if it is supplied in the last backup message
Diffstat (limited to 'tools')
-rw-r--r--tools/iphonebackup.c3
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[])
node_tmp = plist_array_get_item(message, 1);
manifest_plist = plist_dict_get_item(node_tmp, "BackupManifestKey");
if (manifest_plist) {
- if (stat(manifest_path, &st) != 0)
- remove(manifest_path);
+ remove(manifest_path);
printf("Storing Manifest.plist...\n");
plist_write_to_filename(manifest_plist, manifest_path, PLIST_FORMAT_XML);
}