summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2013-08-14 22:09:30 +0200
committerDees_Troy <dees_troy@teamw.in>2013-08-14 22:09:34 +0200
commit2727b99f5576485c42774db143b16b1c2727dcd8 (patch)
tree4cc3ba4623021ad7e21bec09da2b442e32edd814
parentFix touch not working due to gr_fb_width returning 0 in some cases (diff)
downloadandroid_bootable_recovery-2727b99f5576485c42774db143b16b1c2727dcd8.tar
android_bootable_recovery-2727b99f5576485c42774db143b16b1c2727dcd8.tar.gz
android_bootable_recovery-2727b99f5576485c42774db143b16b1c2727dcd8.tar.bz2
android_bootable_recovery-2727b99f5576485c42774db143b16b1c2727dcd8.tar.lz
android_bootable_recovery-2727b99f5576485c42774db143b16b1c2727dcd8.tar.xz
android_bootable_recovery-2727b99f5576485c42774db143b16b1c2727dcd8.tar.zst
android_bootable_recovery-2727b99f5576485c42774db143b16b1c2727dcd8.zip
Diffstat (limited to '')
-rw-r--r--partitionmanager.cpp2
-rw-r--r--twrpTar.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index fc76c1ada..fb3da5aa1 100644
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -611,6 +611,8 @@ bool TWPartitionManager::Backup_Partition(TWPartition* Part, string Backup_Folde
if ((*subpart)->Can_Be_Backed_Up && (*subpart)->Is_SubPartition && (*subpart)->SubPartition_Of == Part->Mount_Point) {
if (!(*subpart)->Backup(Backup_Folder))
return false;
+ sync();
+ sync();
if (!Make_MD5(generate_md5, Backup_Folder, (*subpart)->Backup_FileName))
return false;
if (Part->Backup_Method == 1) {
diff --git a/twrpTar.cpp b/twrpTar.cpp
index 8bfbecd13..59d75d0a2 100644
--- a/twrpTar.cpp
+++ b/twrpTar.cpp
@@ -1251,7 +1251,7 @@ int twrpTar::closeTar() {
LOGERR("Unable to close tar archive: '%s'\n", tarfn.c_str());
return -1;
}
- if (Archive_Current_Type > 1) {
+ if (Archive_Current_Type > 0) {
close(fd);
int status;
if (pigz_pid > 0 && TWFunc::Wait_For_Child(pigz_pid, &status, "pigz") != 0)