Skip to content

Commit

Permalink
[ISO9660] Do not declare the presence of MODE 2 sub-headers based on …
Browse files Browse the repository at this point in the history
…long sector content, but on tag presence on media image.
  • Loading branch information
claunia committed Dec 31, 2024
1 parent abf69a3 commit b7dabe6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Aaru.Filesystems/ISO9660/Xattr.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ public ErrorNumber ListXAttr(string path, out List<string> xattrs)
if(entry.Flags.HasFlag(FileFlags.Directory) || entry.Extents == null || entry.Extents.Count == 0)
return ErrorNumber.NoError;

ErrorNumber errno = _image.ReadSectorLong(entry.Extents[0].extent * _blockSize / 2048, out byte[] sector);
ErrorNumber errno = _image.ReadSectorTag(entry.Extents[0].extent * _blockSize / 2048,
SectorTagType.CdSectorSubHeader,
out byte[] sector);

if(errno != ErrorNumber.NoError) return errno;

Expand Down

0 comments on commit b7dabe6

Please sign in to comment.