Skip to content

Commit

Permalink
* grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as…
Browse files Browse the repository at this point in the history
… u32

as both HFS and HFS+ have 32-bit inodes.
  • Loading branch information
phcoder committed Dec 21, 2013
1 parent 0d4aa91 commit ab21651
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2013-12-21 Vladimir Serbinenko <[email protected]>

* grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
u32 as both HFS and HFS+ have 32-bit inodes.

2013-12-21 Vladimir Serbinenko <[email protected]>

* include/grub/misc.h (grub_strtol): Fix overflow.
Expand Down
6 changes: 3 additions & 3 deletions grub-core/commands/macbless.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ find_inode (const char *filename,
}

grub_err_t
grub_mac_bless_inode (grub_device_t dev, grub_uint64_t inode, int is_dir,
grub_mac_bless_inode (grub_device_t dev, grub_uint32_t inode, int is_dir,
int intel)
{
grub_err_t err;
Expand Down Expand Up @@ -174,8 +174,8 @@ grub_mac_bless_file (grub_device_t dev, const char *path_in, int intel)
}
grub_free (path);

return grub_mac_bless_inode (dev, ctx.inode_found, (ctx.found == DIR),
intel);
return grub_mac_bless_inode (dev, (grub_uint32_t) ctx.inode_found,
(ctx.found == DIR), intel);
}

static grub_err_t
Expand Down
2 changes: 1 addition & 1 deletion include/grub/hfsplus.h
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ grub_hfsplus_btree_search (struct grub_hfsplus_btree *btree,
struct grub_hfsplus_btnode **matchnode,
grub_off_t *keyoffset);
grub_err_t
grub_mac_bless_inode (grub_device_t dev, grub_uint64_t inode, int is_dir,
grub_mac_bless_inode (grub_device_t dev, grub_uint32_t inode, int is_dir,
int intel);
grub_err_t
grub_mac_bless_file (grub_device_t dev, const char *path_in, int intel);

0 comments on commit ab21651

Please sign in to comment.