grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] avoid recursing into dotdirs


From: Robert Millan
Subject: Re: [PATCH] avoid recursing into dotdirs
Date: Thu, 14 Sep 2006 20:57:39 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

On Thu, Sep 14, 2006 at 08:47:18PM +0200, Marco Gerards wrote:
> Robert Millan <address@hidden> 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  <address@hidden>
> >
> >     * 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.

Ok.

> > -      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?

Yep, I had it wrong.  Fixed now.

-- 
Robert Millan

My spam trap is address@hidden  Note: this address is only intended for
spam harvesters.  Writing to it will get you added to my black list.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]