summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@yahoo.com>2013-03-02 15:49:30 +0100
committerDees_Troy <dees_troy@yahoo.com>2013-03-02 15:49:37 +0100
commit50d63be5805c5f7fffd5f15187854439eec83beb (patch)
treec37129c60e769d5e482e181151340b6cb2fc5f9b
parentChange version to 2.4.3.0 (diff)
downloadandroid_bootable_recovery-50d63be5805c5f7fffd5f15187854439eec83beb.tar
android_bootable_recovery-50d63be5805c5f7fffd5f15187854439eec83beb.tar.gz
android_bootable_recovery-50d63be5805c5f7fffd5f15187854439eec83beb.tar.bz2
android_bootable_recovery-50d63be5805c5f7fffd5f15187854439eec83beb.tar.lz
android_bootable_recovery-50d63be5805c5f7fffd5f15187854439eec83beb.tar.xz
android_bootable_recovery-50d63be5805c5f7fffd5f15187854439eec83beb.tar.zst
android_bootable_recovery-50d63be5805c5f7fffd5f15187854439eec83beb.zip
-rw-r--r--twrpTar.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/twrpTar.cpp b/twrpTar.cpp
index 159c1d1b9..cf225db58 100644
--- a/twrpTar.cpp
+++ b/twrpTar.cpp
@@ -107,7 +107,7 @@ int twrpTar::createTarFork() {
LOGI("Child process ended with signal: %d\n", WTERMSIG(status));
return -1;
}
- else if (WIFEXITED(status) != 0)
+ else if (WEXITSTATUS(status) == 0)
LOGI("Tar creation successful\n");
else {
LOGI("Tar creation failed\n");
@@ -141,7 +141,7 @@ int twrpTar::extractTarFork() {
LOGI("Child process ended with signal: %d\n", WTERMSIG(status));
return -1;
}
- else if (WIFEXITED(status) != 0)
+ else if (WEXITSTATUS(status) == 0)
LOGI("Tar extraction successful\n");
else {
LOGI("Tar extraction failed\n");