[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bugfix: directories: not reported as such on case-insensitive fs
From: |
phcoder |
Subject: |
Bugfix: directories: not reported as such on case-insensitive fs |
Date: |
Mon, 09 Feb 2009 17:16:52 +0100 |
User-agent: |
Thunderbird 2.0.0.19 (X11/20090105) |
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 <address@hidden>
+
+ 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
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Bugfix: directories: not reported as such on case-insensitive fs,
phcoder <=