summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDees Troy <dees_troy@teamw.in>2014-04-07 20:01:41 +0200
committerDees Troy <dees_troy@teamw.in>2014-04-07 20:03:34 +0200
commitb1c6e052173fcaaf6e29df6969bfc8faf58ef345 (patch)
treefe4fbb6cf45b48fddb89cf8eeec6d666d3a840da
parentRearrange opening of output and input files for error handling (diff)
downloadandroid_bootable_recovery-b1c6e052173fcaaf6e29df6969bfc8faf58ef345.tar
android_bootable_recovery-b1c6e052173fcaaf6e29df6969bfc8faf58ef345.tar.gz
android_bootable_recovery-b1c6e052173fcaaf6e29df6969bfc8faf58ef345.tar.bz2
android_bootable_recovery-b1c6e052173fcaaf6e29df6969bfc8faf58ef345.tar.lz
android_bootable_recovery-b1c6e052173fcaaf6e29df6969bfc8faf58ef345.tar.xz
android_bootable_recovery-b1c6e052173fcaaf6e29df6969bfc8faf58ef345.tar.zst
android_bootable_recovery-b1c6e052173fcaaf6e29df6969bfc8faf58ef345.zip
-rw-r--r--twrpTar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/twrpTar.cpp b/twrpTar.cpp
index 08f482168..f6282e73b 100644
--- a/twrpTar.cpp
+++ b/twrpTar.cpp
@@ -558,7 +558,7 @@ int twrpTar::tarList(std::vector<TarListStruct> *TarList, unsigned thread_id) {
strcpy(buf, TarList->at(i).fn.c_str());
lstat(buf, &st);
if (S_ISREG(st.st_mode)) { // item is a regular file
- if (Archive_Current_Size + (unsigned long long)(st.st_size) > MAX_ARCHIVE_SIZE) {
+ if (split_archives && Archive_Current_Size + (unsigned long long)(st.st_size) > MAX_ARCHIVE_SIZE) {
if (closeTar() != 0) {
LOGERR("Error closing '%s' on thread %i\n", tarfn.c_str(), thread_id);
return -3;