]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2009-07-25 Felix Zielcke <fzielcke@z-51.de>
authorfzielcke <fzielcke@localhost>
Sat, 25 Jul 2009 09:30:25 +0000 (09:30 +0000)
committerfzielcke <fzielcke@localhost>
Sat, 25 Jul 2009 09:30:25 +0000 (09:30 +0000)
* kern/file.c (grub_file_open): Fix an error check.

ChangeLog
kern/file.c

index 4381e3cc46fceef50f1c6dd93ffdbb62db380c52..bffd6c16c3b094f778436d705f0bfa83076805fd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-07-25  Felix Zielcke  <fzielcke@z-51.de>
+
+       * kern/file.c (grub_file_open): Fix an error check.
+
 2009-07-24  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
index 9b56b88e439dbd0817f42b7239d11844658ea537..362cf1d7f76c467def8df6f2e4226d8d6014b79f 100644 (file)
@@ -60,8 +60,8 @@ grub_file_open (const char *name)
   char *file_name;
 
   device_name = grub_file_get_device_name (name);
-  if (grub_errno)
-    return 0;
+  if (! device_name)
+    goto fail;
 
   /* Get the file part of NAME.  */
   file_name = grub_strchr (name, ')');