[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: grub2 claims grub.cfg is out of partition
From: |
Vladimir 'φ-coder/phcoder' Serbinenko |
Subject: |
Re: grub2 claims grub.cfg is out of partition |
Date: |
Thu, 21 Jul 2011 00:33:27 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110626 Iceowl/1.0b2 Icedove/3.1.11 |
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
signature.asc
Description: OpenPGP digital signature