entry_name also for entries without stat blocks (e.g. ".."); fixes
corruption of the first entry in a directory.
+2010-07-06 Colin Watson <cjwatson@ubuntu.com>
+
+ * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
+ entry_name also for entries without stat blocks (e.g. ".."); fixes
+ corruption of the first entry in a directory.
+
2010-07-06 Colin Watson <cjwatson@ubuntu.com>
* util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
"Warning : %s has no stat block !\n",
entry_name);
grub_free (entry_item);
- continue;
+ goto next;
}
}
if (hook (entry_name, entry_type, entry_item))
goto found;
}
+next:
*entry_name = 0; /* Make sure next entry name (which is just
before this one in disk order) stops before
the current one. */