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:
parent
bac332a11a
commit
605e36ed3e
2 changed files with 9 additions and 0 deletions
|
@ -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>
|
2008-01-24 Bean <bean123ch@gmail.com>
|
||||||
|
|
||||||
* fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
|
* fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
|
||||||
|
|
|
@ -59,6 +59,9 @@ grub_file_open (const char *name)
|
||||||
char *device_name;
|
char *device_name;
|
||||||
char *file_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);
|
device_name = grub_file_get_device_name (name);
|
||||||
if (grub_errno)
|
if (grub_errno)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue