Bug#634799: grub2 claims grub.cfg is out of partition

Samuel Thibault samuel.thibault at ens-lyon.org
Sun Apr 22 17:17:14 UTC 2012


Hello,

Vladimir 'φ-coder/phcoder' Serbinenko, le Thu 21 Jul 2011 00:33:27 +0200, a écrit :
> On 21.07.2011 00:28, Samuel Thibault wrote:
> > The attached patch fixes it. Shall I commit it to upstream grub2?
> >
> Go ahead

The patch has been commited upstream, as attached, months ago, could it
be applied to the debian package please?

Samuel
-------------- next part --------------
=== modified file 'grub-core/fs/ext2.c'
--- grub-core/fs/ext2.c	2012-01-14 10:30:43 +0000
+++ grub-core/fs/ext2.c	2012-01-14 10:55:20 +0000
@@ -685,7 +685,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;



More information about the Pkg-grub-devel mailing list