From abba45eed9f2bb7f98cd55255869f0d3091ffab1 Mon Sep 17 00:00:00 2001 From: Felix Zielcke Date: Sat, 25 Jul 2009 18:28:58 +0000 Subject: [PATCH] 2009-07-25 Felix Zielcke * kern/file.c (grub_file_open): Revert to previous check with grub_errno. git-svn-id: svn://svn.savannah.gnu.org/grub/trunk/grub2@2447 d0de0278-0dc1-4c01-8a07-af38b3205e46 --- ChangeLog | 5 +++++ kern/file.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f1deeece..752bde8a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-07-25 Felix Zielcke + + * kern/file.c (grub_file_open): Revert to previous check with + grub_errno. + 2009-07-25 Vladimir Serbinenko * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]" diff --git a/kern/file.c b/kern/file.c index 362cf1d7..9b56b88e 100644 --- a/kern/file.c +++ b/kern/file.c @@ -60,8 +60,8 @@ grub_file_open (const char *name) char *file_name; device_name = grub_file_get_device_name (name); - if (! device_name) - goto fail; + if (grub_errno) + return 0; /* Get the file part of NAME. */ file_name = grub_strchr (name, ')'); -- 2.11.4.GIT