summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDees Troy <dees_troy@teamw.in>2013-03-04 21:52:07 +0100
committerGerrit Code Review <gerrit@5.9.244.119>2013-03-04 21:52:07 +0100
commit3578701315b41c8ae5d5215a23e594887783099c (patch)
tree60fd7084ec41e53ab00b46c3e2d23fb706c841ba
parentMerge "Another libtar hardlink workaround" into twrp2.4 (diff)
parentFix capturing exit status to properly display libtar results (diff)
downloadandroid_bootable_recovery-3578701315b41c8ae5d5215a23e594887783099c.tar
android_bootable_recovery-3578701315b41c8ae5d5215a23e594887783099c.tar.gz
android_bootable_recovery-3578701315b41c8ae5d5215a23e594887783099c.tar.bz2
android_bootable_recovery-3578701315b41c8ae5d5215a23e594887783099c.tar.lz
android_bootable_recovery-3578701315b41c8ae5d5215a23e594887783099c.tar.xz
android_bootable_recovery-3578701315b41c8ae5d5215a23e594887783099c.tar.zst
android_bootable_recovery-3578701315b41c8ae5d5215a23e594887783099c.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");