digest: fix checking of digest on restore
Change-Id: I40ec9848248b9cc62919535c5493090d80cd732a
diff --git a/twrpDigestDriver.cpp b/twrpDigestDriver.cpp
index 3e21d06..82fa3c2 100755
--- a/twrpDigestDriver.cpp
+++ b/twrpDigestDriver.cpp
@@ -86,6 +86,7 @@
return false;
}
string digest_check = digest->return_digest_string();
+ digest_check = digest_check + " " + TWFunc::Get_Filename(file_name);
if (digest_check == digest_str) {
if (use_sha2)
LOGINFO("SHA2 Digest: %s %s\n", digest_str.c_str(), TWFunc::Get_Filename(Filename).c_str());