Extended attributes are undefined format in CD-i and High Sierra Format, skip them in stat.

This commit is contained in:
2019-07-31 04:34:27 +01:00
parent 2f10f92500
commit 6ee7c68d55

View File

@@ -200,7 +200,7 @@ namespace DiscImageChef.Filesystems.ISO9660
if(entry.SymbolicLink != null) stat.Attributes |= FileAttributes.Symlink;
if(entry.XattrLength == 0) return Errno.NoError;
if(entry.XattrLength == 0 || cdi || highSierra) return Errno.NoError;
// TODO: XA
uint eaSizeInSectors = (uint)(entry.XattrLength / 2048);