* util/grub-mount.c (fuse_init): Return error if fuse_main
failed.
This commit is contained in:
parent
31df9ad845
commit
a7b1d6933b
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
|
||||
|
||||
* util/grub-mount.c (fuse_init): Return error if fuse_main
|
||||
failed.
|
||||
|
||||
2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
|
||||
|
||||
* include/grub/elf.h: Add missing ARM relocation codes and fix
|
||||
|
|
|
@ -407,7 +407,8 @@ fuse_init (void)
|
|||
return grub_errno;
|
||||
}
|
||||
|
||||
fuse_main (fuse_argc, fuse_args, &grub_opers, NULL);
|
||||
if (fuse_main (fuse_argc, fuse_args, &grub_opers, NULL))
|
||||
grub_error (GRUB_ERR_IO, "fuse_main failed");
|
||||
|
||||
for (i = 0; i < num_disks; i++)
|
||||
{
|
||||
|
@ -427,7 +428,7 @@ fuse_init (void)
|
|||
grub_free (loop_name);
|
||||
}
|
||||
|
||||
return GRUB_ERR_NONE;
|
||||
return grub_errno;
|
||||
}
|
||||
|
||||
static struct argp_option options[] = {
|
||||
|
|
Loading…
Reference in a new issue