|
|
a5bd9f6 |
From 52556c462eeee3a3f10f79923dd3b9eff1e520e7 Mon Sep 17 00:00:00 2001
|
|
|
a5bd9f6 |
From: Andrey Borzenkov <arvidjaar@gmail.com>
|
|
|
a5bd9f6 |
Date: Wed, 3 Apr 2013 11:28:16 +0200
|
|
|
a5bd9f6 |
Subject: [PATCH 245/364] * util/grub-mount.c (fuse_init): Return error
|
|
|
a5bd9f6 |
if fuse_main failed.
|
|
|
a5bd9f6 |
|
|
|
a5bd9f6 |
---
|
|
|
a5bd9f6 |
ChangeLog | 5 +++++
|
|
|
a5bd9f6 |
util/grub-mount.c | 5 +++--
|
|
|
a5bd9f6 |
2 files changed, 8 insertions(+), 2 deletions(-)
|
|
|
a5bd9f6 |
|
|
|
a5bd9f6 |
diff --git a/ChangeLog b/ChangeLog
|
|
|
a5bd9f6 |
index 56588dd..7cda161 100644
|
|
|
a5bd9f6 |
--- a/ChangeLog
|
|
|
a5bd9f6 |
+++ b/ChangeLog
|
|
|
a5bd9f6 |
@@ -1,3 +1,8 @@
|
|
|
a5bd9f6 |
+2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
|
|
|
a5bd9f6 |
+
|
|
|
a5bd9f6 |
+ * util/grub-mount.c (fuse_init): Return error if fuse_main
|
|
|
a5bd9f6 |
+ failed.
|
|
|
a5bd9f6 |
+
|
|
|
a5bd9f6 |
2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
|
|
|
a5bd9f6 |
|
|
|
a5bd9f6 |
* include/grub/elf.h: Add missing ARM relocation codes and fix
|
|
|
a5bd9f6 |
diff --git a/util/grub-mount.c b/util/grub-mount.c
|
|
|
a5bd9f6 |
index d0ab6a2..4a2333a 100644
|
|
|
a5bd9f6 |
--- a/util/grub-mount.c
|
|
|
a5bd9f6 |
+++ b/util/grub-mount.c
|
|
|
a5bd9f6 |
@@ -407,7 +407,8 @@ fuse_init (void)
|
|
|
a5bd9f6 |
return grub_errno;
|
|
|
a5bd9f6 |
}
|
|
|
a5bd9f6 |
|
|
|
a5bd9f6 |
- fuse_main (fuse_argc, fuse_args, &grub_opers, NULL);
|
|
|
a5bd9f6 |
+ if (fuse_main (fuse_argc, fuse_args, &grub_opers, NULL))
|
|
|
a5bd9f6 |
+ grub_error (GRUB_ERR_IO, "fuse_main failed");
|
|
|
a5bd9f6 |
|
|
|
a5bd9f6 |
for (i = 0; i < num_disks; i++)
|
|
|
a5bd9f6 |
{
|
|
|
a5bd9f6 |
@@ -427,7 +428,7 @@ fuse_init (void)
|
|
|
a5bd9f6 |
grub_free (loop_name);
|
|
|
a5bd9f6 |
}
|
|
|
a5bd9f6 |
|
|
|
a5bd9f6 |
- return GRUB_ERR_NONE;
|
|
|
a5bd9f6 |
+ return grub_errno;
|
|
|
a5bd9f6 |
}
|
|
|
a5bd9f6 |
|
|
|
a5bd9f6 |
static struct argp_option options[] = {
|
|
|
a5bd9f6 |
--
|
|
|
a5bd9f6 |
1.8.1.4
|
|
|
a5bd9f6 |
|