All of lore.kernel.org
 help / color / mirror / Atom feed
From: Felix Zielcke <fzielcke@z-51.de>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [Fwd: Bug#503344: Grub-pc fails on IBM x3250 configured with  RAID-1]
Date: Sat, 25 Jul 2009 11:31:44 +0200	[thread overview]
Message-ID: <1248514304.3665.10.camel@fz.local> (raw)
In-Reply-To: <d7ead6de0907250137u523515bbq76d63f3d0f649e99@mail.gmail.com>

Am Samstag, den 25.07.2009, 10:37 +0200 schrieb Vladimir 'phcoder'
Serbinenko:
> On Sat, Jul 25, 2009 at 1:35 AM, Felix Zielcke<fzielcke@z-51.de> wrote:
> > Is this an acceptable fix?
> > Though I have the feeling this isn't a proper one.
> >
> >>
> >> The fix is to assign grub_errno before making the call to
> >> grub_file_get_device_name():
> Just check whether returned device_name is 0 or not

Ok, I should have checked the actual code. That was pretty clear.
Sorry for the noise.

> >>
> >> diff --git a/kern/file.c b/kern/file.c
> >> index adf55da..5e605f9 100644
> >> --- a/kern/file.c
> >> +++ b/kern/file.c
> >> @@ -59,6 +59,7 @@ grub_file_open (const char *name)
> >>     char *device_name;
> >>     char *file_name;
> >>
> >> +  grub_errno = GRUB_ERR_NONE;  /* Used as error flag */
> >>     device_name = grub_file_get_device_name (name);
> >>     if (grub_errno)
> >>       return 0;
> >
> >
> > --
> > Felix Zielcke
> > Proud Debian Maintainer
> >
> >
> >
> > _______________________________________________
> > Grub-devel mailing list
> > Grub-devel@gnu.org
> > http://lists.gnu.org/mailman/listinfo/grub-devel
> >
> 
> 
> 


-- 
Felix Zielcke
Proud Debian Maintainer




  reply	other threads:[~2009-07-25  9:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-24 23:35 [Fwd: Bug#503344: Grub-pc fails on IBM x3250 configured with RAID-1] Felix Zielcke
2009-07-25  8:37 ` Vladimir 'phcoder' Serbinenko
2009-07-25  9:31   ` Felix Zielcke [this message]
2009-07-25 16:45 ` Robert Millan
2009-07-25 16:58   ` Felix Zielcke

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=1248514304.3665.10.camel@fz.local \
    --to=fzielcke@z-51.de \
    --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.