summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--twrpTar.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/twrpTar.cpp b/twrpTar.cpp
index b053c08d4..ad328dd01 100644
--- a/twrpTar.cpp
+++ b/twrpTar.cpp
@@ -234,6 +234,7 @@ int twrpTar::createTarFork() {
enc[i].ItemList = &EncryptList;
enc[i].thread_id = i;
enc[i].use_encryption = use_encryption;
+ enc[i].setpassword(password);
enc[i].use_compression = use_compression;
enc[i].split_archives = 1;
LOGINFO("Start encryption thread %i\n", i);
@@ -379,6 +380,7 @@ int twrpTar::extractTarFork() {
if (TWFunc::Path_Exists(actual_filename)) {
thread_count++;
tars[i].basefn = basefn;
+ tars[i].setpassword(password);
tars[i].thread_id = i;
LOGINFO("Creating extract thread ID %i\n", i);
ret = pthread_create(&tar_thread[i], &tattr, extractMulti, (void*)&tars[i]);