summaryrefslogtreecommitdiffstats
path: root/twrpTar.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--twrpTar.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/twrpTar.cpp b/twrpTar.cpp
index 968b6b9e7..7f057df98 100644
--- a/twrpTar.cpp
+++ b/twrpTar.cpp
@@ -44,6 +44,9 @@ extern "C" {
#ifndef BUILD_TWRPTAR_MAIN
#include "data.hpp"
#include "infomanager.hpp"
+extern "C" {
+ #include "set_metadata.h"
+}
#endif //ndef BUILD_TWRPTAR_MAIN
using namespace std;
@@ -1243,7 +1246,9 @@ int twrpTar::closeTar() {
LOGERR("Backup file size for '%s' is 0 bytes.\n", tarfn.c_str());
return -1;
}
+#ifndef BUILD_TWRPTAR_MAIN
tw_set_default_metadata(tarfn.c_str());
+#endif
return 0;
}