From 0d637bbcc7d53af929a3ebb58af2c4deb248a4ba Mon Sep 17 00:00:00 2001 From: hunili Date: Tue, 10 Dec 2024 17:18:00 +0800 Subject: [PATCH] incremental restore no data issue: https://gitee.com/openharmony/filemanagement_app_file_service/issues/IBAE4G Signed-off-by: hunili --- frameworks/native/backup_ext/src/untar_file.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frameworks/native/backup_ext/src/untar_file.cpp b/frameworks/native/backup_ext/src/untar_file.cpp index b78a17d26..ba4baff48 100644 --- a/frameworks/native/backup_ext/src/untar_file.cpp +++ b/frameworks/native/backup_ext/src/untar_file.cpp @@ -383,8 +383,9 @@ bool UntarFile::DealFileTag(ErrFileInfo &errFileInfo, if (fseeko(tarFilePtr_, pos_ + tarFileBlockCnt_ * BLOCK_SIZE, SEEK_SET) != 0) { HILOGE("Failed to fseeko of %{private}s, err = %{public}d", info.fullPath.c_str(), errno); errFileInfo[info.fullPath].push_back(DEFAULT_ERR); + return false; } - return false; + return true; } info.fullPath = GenRealPath(rootPath_, info.fullPath); if (BDir::CheckFilePathInvalid(info.fullPath)) { -- Gitee