From ec67ba628c688d8c0a01c7f5901155797be7b510 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Mon, 25 Jan 2010 15:45:01 +0100 Subject: Remove the manifest file if it is supplied in the last backup message --- tools/iphonebackup.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tools') 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); } -- cgit v1.1-32-gdbae