Skip to content

Commit

Permalink
Fix parser bug and remove some temporarily workaround for the UFS/UFS…
Browse files Browse the repository at this point in the history
…2 file system image readonly support for NanaZip.Codecs.
  • Loading branch information
MouriNaruto committed Jan 31, 2025
1 parent 4b014cc commit 7e3ad90
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions NanaZip.Codecs/NanaZip.Codecs.Archive.Ufs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,8 @@ namespace NanaZip::Codecs::Archive
std::uint64_t GetInodeOffset(
std::uint32_t const& Inode)
{
std::uint32_t InodePerCylinderGroup = this->ReadInt32(
&this->m_SuperBlock.fs_fpg);
std::uint32_t InodePerCylinderGroup = this->ReadUInt32(
&this->m_SuperBlock.fs_ipg);
std::uint32_t CylinderGroup = Inode / InodePerCylinderGroup;
std::uint32_t SubIndex = Inode % InodePerCylinderGroup;
std::uint64_t Result = this->GetCylinderGroupStart(CylinderGroup);
Expand Down Expand Up @@ -1082,12 +1082,6 @@ namespace NanaZip::Codecs::Archive
continue;
}

if (Information.Mode & IFDIR)
{
OutputStream->Release();
continue;
}

std::uint32_t BlockSize = this->GetBlockSize();

UINT32 Todo = static_cast<UINT32>(Information.FileSize);
Expand Down

0 comments on commit 7e3ad90

Please sign in to comment.