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.
This commit is contained in:
robertmh 2008-01-24 00:06:55 +00:00
parent bac332a11a
commit 605e36ed3e
2 changed files with 9 additions and 0 deletions

View File

@ -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.

View 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;