From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] Don't abort if prefix is not set
Date: Sat, 26 Jan 2008 20:59:37 +0100 [thread overview]
Message-ID: <20080126195937.GC6486@thorin> (raw)
In-Reply-To: <20080126194444.16214.26226.stgit@dv.roinet.com>
On Sat, Jan 26, 2008 at 02:44:44PM -0500, Pavel Roskin wrote:
>
> ---
>
> ChangeLog | 5 +++++
> kern/dl.c | 6 ++++--
> 2 files changed, 9 insertions(+), 2 deletions(-)
>
> diff --git a/ChangeLog b/ChangeLog
> index 009b4dc..44d5887 100644
> --- a/ChangeLog
> +++ b/ChangeLog
> @@ -1,3 +1,8 @@
> +2008-01-26 Pavel Roskin <proski@gnu.org>
> +
> + * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
> + just return an error.
> +
> 2008-01-26 Bean <bean123ch@gmail.com>
>
> * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
> diff --git a/kern/dl.c b/kern/dl.c
> index d3488fb..9e8c24a 100644
> --- a/kern/dl.c
> +++ b/kern/dl.c
> @@ -625,8 +625,10 @@ grub_dl_load (const char *name)
> if (mod)
> return mod;
>
> - if (! grub_dl_dir)
> - grub_fatal ("module dir is not initialized yet");
> + if (! grub_dl_dir) {
> + grub_error (GRUB_ERR_FILE_NOT_FOUND, "\"prefix\" is not set");
> + return 0;
Seems fine, but are you sure this error is handled somewhere?
--
Robert Millan
<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)
next prev parent reply other threads:[~2008-01-26 20:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-26 19:44 [PATCH] Don't abort if prefix is not set Pavel Roskin
2008-01-26 19:59 ` Robert Millan [this message]
2008-01-26 20:11 ` Pavel Roskin
2008-01-26 20:24 ` Robert Millan
2008-01-26 20:31 ` Pavel Roskin
2008-01-27 8:36 ` Robert Millan
2008-01-26 20:35 ` Vesa Jääskeläinen
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=20080126195937.GC6486@thorin \
--to=rmh@aybabtu.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.