From 7272085a54b553ff47ef7cae8bc7ded02e3dd7be Mon Sep 17 00:00:00 2001 From: hunili Date: Tue, 17 Dec 2024 19:48:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E9=87=8F=E6=81=A2=E5=A4=8D=E6=97=A0?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=20issue:https://gitee.com/openharmony/filema?= =?UTF-8?q?nagement=5Fapp=5Ffile=5Fservice/issues/IBBXVO?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 84dacb0e1..4a2ce205e 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