Bug#634799: grub2 claims grub.cfg is out of partition
Vladimir 'φ-coder/phcoder' Serbinenko
phcoder at gmail.com
Wed Jul 20 22:33:27 UTC 2011
On 21.07.2011 00:28, Samuel Thibault wrote:
> The attached patch fixes it. Shall I commit it to upstream grub2?
>
Go ahead
> Samuel
> patch
>
>
> === modified file 'grub-core/fs/ext2.c'
> --- grub-core/fs/ext2.c 2011-04-11 21:01:51 +0000
> +++ grub-core/fs/ext2.c 2011-07-20 22:20:43 +0000
> @@ -689,7 +689,7 @@ grub_ext2_iterate_dir (grub_fshelp_node_
> if (dirent.direntlen == 0)
> return 0;
>
> - if (dirent.namelen != 0)
> + if (dirent.inode != 0 && dirent.namelen != 0)
> {
> char filename[dirent.namelen + 1];
> struct grub_fshelp_node *fdiro;
>
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 294 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20110721/fc467923/attachment.pgp>
More information about the Pkg-grub-devel
mailing list