From 924a80b7b3262cf635dccab7ab857e5eae7c7fd3 Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Wed, 2 Apr 2014 10:54:12 -0500 Subject: Fix backup and restore of encrypted backups After removing the DataManager code to support twrpTar separate binary we were failing to pass / set the password for the various separate threads used for openaes. Change-Id: Ifff634777fe122e0195d84f67932177ca8879c2f --- twrpTar.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'twrpTar.cpp') 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]); -- cgit v1.2.3