From: phcoder <phcoder@gmail.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Bugfix: directories: not reported as such on case-insensitive fs
Date: Mon, 09 Feb 2009 17:16:52 +0100 [thread overview]
Message-ID: <499056F4.6000800@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 53 bytes --]
Bugfix. Patch attached
Vladimir 'phcoder' Serbinenko
[-- Attachment #2: hfspbf.diff --]
[-- Type: text/x-diff, Size: 1277 bytes --]
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 <phcoder@gmail.com>
+
+ 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
{
next reply other threads:[~2009-02-09 16:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-09 16:16 phcoder [this message]
2009-03-13 19:31 ` Bugfix: directories: not reported as such on case-insensitive fs Robert Millan
2009-03-13 19:32 ` Robert Millan
2009-03-13 20:42 ` phcoder
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=499056F4.6000800@gmail.com \
--to=phcoder@gmail.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.