mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-26 17:19:22 +00:00
2009-05-13 Pavel Roskin <proski@gnu.org>
* fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the PX record is always little-endian. We only need the lower 2 bytes of the mode.
This commit is contained in:
1 parent
faec96afc8
commit
a2c8c5f8f6
2 files changed
+6
-2
No files matched your search
+2
-2
@@ -521,8 +521,8 @@ grub_iso9660_iterate_dir (grub_fshelp_node_t dir,
|
||||
else if (grub_strncmp ((char *) entry->sig, "PX", 2) == 0)
|
||||
{
|
||||
/* At position 0 of the PX record the st_mode information is
|
||||
stored. */
|
||||
grub_uint32_t mode = ((*(grub_uint32_t *) &entry->data[0])
|
||||
stored (little-endian). */
|
||||
grub_uint32_t mode = ((entry->data[0] + (entry->data[1] << 8))
|
||||
& GRUB_ISO9660_FSTYPE_MASK);
|
||||
|
||||
switch (mode)
|
||||
|
||||
Reference in new issue
Block a user