From: Marco Gerards <mgerards@xs4all.nl>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] avoid recursing into dotdirs
Date: Thu, 14 Sep 2006 20:47:18 +0200 [thread overview]
Message-ID: <874pvathe1.fsf@xs4all.nl> (raw)
In-Reply-To: <20060914183031.GA20618@khazad.dyndns.org> (Robert Millan's message of "Thu, 14 Sep 2006 20:30:31 +0200")
Robert Millan <rmh@aybabtu.com> writes:
> grub-probefs used to recurse into /dev/.static, then come up with
> /dev/.static/dev/hda as my root disk, which later fails to pass the
> pathname-based checks that expect things like /dev/[hsf]d[0-9].
>
> 2006-09-14 Robert Millan <rmh@aybabtu.com>
>
> * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
There is a double space before "Don't", it should be a single space.
> - if (S_ISDIR (st.st_mode))
> + if (S_ISDIR (st.st_mode) && ent->d_name[0] != '.')
> {
> - /* Find it recursively. */
> + /* Find it recursively, but avoid dotdirs (like ".static") since they
> + could contain duplicates, which would later break the pathname-based
> + check */
This looks fine, but funny. I assume you are using tabs where there
should be spaces. Can you please check that before committing?
--
Marco
next prev parent reply other threads:[~2006-09-14 18:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-14 18:30 [PATCH] avoid recursing into dotdirs Robert Millan
2006-09-14 18:47 ` Marco Gerards [this message]
2006-09-14 18:57 ` Robert Millan
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=874pvathe1.fsf@xs4all.nl \
--to=mgerards@xs4all.nl \
--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.