From 17a0929842720d60b30ceb911b0310756c6c1674 Mon Sep 17 00:00:00 2001 From: Sangyoon Jang Date: Fri, 6 Nov 2020 17:36:43 +0900 Subject: [PATCH] Fix writing recovery file If writing value of bf::path, the double quote will be appended. To fix this, use string type instead (This is fix of side-effect of previous commit: https://review.tizen.org/gerrit/c/platform/core/appfw/app-installers/+/243942) Change-Id: Ide470d02e725c0bfce090c87d96480af579466bd Signed-off-by: Sangyoon Jang --- src/common/recovery_file.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/recovery_file.cc b/src/common/recovery_file.cc index e092522..815c433 100644 --- a/src/common/recovery_file.cc +++ b/src/common/recovery_file.cc @@ -260,7 +260,7 @@ bool RecoveryFile::WriteAndCommitFileContent() { ofs << kRecoveryUnknownString << std::endl; break; } - ofs << unpacked_dir_ << std::endl; + ofs << unpacked_dir_.c_str() << std::endl; ofs << pkgid_ << std::endl; ofs << (backup_done_ ? "true" : "false") << std::endl; ofs << (cleanup_ ? "cleanup" : "rollback") << std::endl; -- 2.7.4