]> git.ipfire.org Git - thirdparty/grub.git/commit
fs/hfsplus: Allow reading files created by Mac OS 9
authorDave Vasilevsky <dave@vasilevsky.ca>
Wed, 1 Oct 2025 21:03:48 +0000 (17:03 -0400)
committerDaniel Kiper <daniel.kiper@oracle.com>
Sat, 11 Oct 2025 13:43:58 +0000 (15:43 +0200)
commita8379e693b00ed523aac96230c778c773fcbb684
tree82fc1413e30c4d29a19d40c55189d546f9cacfbc
parentc5ff0d616f4f311fde0b8da267beb749b92c2ebe
fs/hfsplus: Allow reading files created by Mac OS 9

The "permissions" field of hfsplus files is only used by Mac OS X. This
causes GRUB to skip reading files created by Mac OS 9, since their
file mode is read as unknown. Instead, assume files with zero mode
are regular files.

From Technote 1150:

  The traditional Mac OS implementation of HFS Plus does not use the
  permissions field. Files created by traditional Mac OS have the
  entire field set to 0.

Signed-off-by: Dave Vasilevsky <dave@vasilevsky.ca>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/fs/hfsplus.c