From a7b1d6933b9e0225799a68a20d8c95ab9c6d6918 Mon Sep 17 00:00:00 2001 From: Andrey Borzenkov Date: Wed, 3 Apr 2013 11:28:16 +0200 Subject: [PATCH] * util/grub-mount.c (fuse_init): Return error if fuse_main failed. --- ChangeLog | 5 +++++ util/grub-mount.c | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 56588dd9f..7cda16105 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-04-03 Andrey Borzenkov + + * util/grub-mount.c (fuse_init): Return error if fuse_main + failed. + 2013-04-03 Francesco Lavra * include/grub/elf.h: Add missing ARM relocation codes and fix diff --git a/util/grub-mount.c b/util/grub-mount.c index d0ab6a2e2..4a2333ac0 100644 --- a/util/grub-mount.c +++ b/util/grub-mount.c @@ -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[] = {