]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2008-01-24 Robert Millan <rmh@aybabtu.com>
authorrobertmh <robertmh@localhost>
Thu, 24 Jan 2008 00:06:55 +0000 (00:06 +0000)
committerrobertmh <robertmh@localhost>
Thu, 24 Jan 2008 00:06:55 +0000 (00:06 +0000)
        * kern/file.c (grub_file_open): Do not account previous failures of
        unrelated functions when grub_errno is checked for.
        Reported by Oleg Strikov.

ChangeLog
kern/file.c

index 9d430939e7928a06ebba36006c73444e58110e11..6450ebe8f30433045af7bbb83665921c9460c504 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-01-24  Robert Millan  <rmh@aybabtu.com>
+
+       * kern/file.c (grub_file_open): Do not account previous failures of
+       unrelated functions when grub_errno is checked for.
+       Reported by Oleg Strikov.
+
 2008-01-24  Bean  <bean123ch@gmail.com>
 
        * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
index adf55daf38c69eea9d2d8dbb6434fa866f159a97..fe9a4060275836f5c8a57b9084a005eb254ab47d 100644 (file)
@@ -59,6 +59,9 @@ grub_file_open (const char *name)
   char *device_name;
   char *file_name;
 
+  /* Do not account previous failures when grub_errno is checked for.  */
+  grub_errno = GRUB_ERR_NONE;
+
   device_name = grub_file_get_device_name (name);
   if (grub_errno)
     return 0;