2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
* loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New function. (grub_multiboot_load_elf32): Likewise. (grub_multiboot_is_elf64): Likewise. (grub_multiboot_load_elf64): Likewise. (grub_multiboot_load_elf): Likewise. (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load an ELF32 or ELF64 file. This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>. From Serbinenko Vladimir <serbinenko.vova@list.ru>: * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not NULL before calling FS->LABEL. * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL. * commands/ls.c (grub_ls_list_files): Show labels, if possible. (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL before calling FS->LABEL.
This commit is contained in:
parent
141a288bb0
commit
ea4097134f
6 changed files with 222 additions and 85 deletions
2
fs/fat.c
2
fs/fat.c
|
@ -629,7 +629,7 @@ grub_fat_dir (grub_device_t device, const char *path,
|
|||
struct grub_fat_data *data = 0;
|
||||
grub_disk_t disk = device->disk;
|
||||
grub_size_t len;
|
||||
char *dirname;
|
||||
char *dirname = 0;
|
||||
char *p;
|
||||
|
||||
#ifndef GRUB_UTIL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue