Bugfix. Patch attached
Vladimir 'phcoder' Serbinenko
Index: fs/hfsplus.c
===================================================================
--- fs/hfsplus.c (revision 1985)
+++ fs/hfsplus.c (working copy)
@@ -899,8 +899,8 @@
grub_fshelp_node_t node)
{
grub_free (node);
-
- if (filetype == GRUB_FSHELP_DIR)
+
+ if ((filetype & GRUB_FSHELP_TYPE_MASK) == GRUB_FSHELP_DIR)
return hook (filename, 1);
else
return hook (filename, 0);
Index: ChangeLog
===================================================================
--- ChangeLog (revision 1985)
+++ ChangeLog (working copy)
@@ -1,0 +1,8 @@
+2009-02-09 Vladimir Serbinenko <[email protected]>
+
+ Bugfix: directories not reported as such on case-insensitive hfs+
+
+ * include/grub/fshelp.h: included definition of GRUB_FSHELP_TYPE_MASK
+ and GRUB_FSHELP_FLAGS_MASK
+ * fs/hfsplus.c (grub_hfsplus_dir): ignore filetype flags
+
Index: include/grub/fshelp.h
===================================================================
--- include/grub/fshelp.h (revision 1985)
+++ include/grub/fshelp.h (working copy)
@@ -27,6 +27,8 @@
typedef struct grub_fshelp_node *grub_fshelp_node_t;
#define GRUB_FSHELP_CASE_INSENSITIVE 0x100
+#define GRUB_FSHELP_TYPE_MASK 0xff
+#define GRUB_FSHELP_FLAGS_MASK 0x100
enum grub_fshelp_filetype
{
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel