diff --git a/frameworks/native/backup_ext/src/untar_file.cpp b/frameworks/native/backup_ext/src/untar_file.cpp index b78a17d26503dd15632cd2726a3308a9ba42fed0..ba4baff48ffb49877aeeb0fee697c70f03153702 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)) {