From: Pavel Roskin <proski@gnu.org>
To: grub-devel@gnu.org
Subject: [PATCH] Don't abort if prefix is not set
Date: Sat, 26 Jan 2008 14:44:44 -0500 [thread overview]
Message-ID: <20080126194444.16214.26226.stgit@dv.roinet.com> (raw)
---
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;
+ }
filename = (char *) grub_malloc (grub_strlen (grub_dl_dir) + 1
+ grub_strlen (name) + 4 + 1);
next reply other threads:[~2008-01-26 19:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-26 19:44 Pavel Roskin [this message]
2008-01-26 19:59 ` [PATCH] Don't abort if prefix is not set Robert Millan
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=20080126194444.16214.26226.stgit@dv.roinet.com \
--to=proski@gnu.org \
--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.