diff --git a/frameworks/native/backup_ext/src/untar_file.cpp b/frameworks/native/backup_ext/src/untar_file.cpp index 84dacb0e19461a5e030e9fff3b0fe806e0f88649..4a2ce205e09ec14c9fa7c8d065a5e8943b775b49 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)) {