summaryrefslogtreecommitdiff
path: root/debian/patches/libdiskfs-fix0001-libdiskfs-improve-error-handling.patch
blob: 4e435d5363c11a58efa9d5d475ccf4a76a70be41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From b12e298fd7b6fbfd45140d327d02dfc84ca9d0fc Mon Sep 17 00:00:00 2001
From: Justus Winter <justus@gnupg.org>
Date: Tue, 19 Apr 2016 11:58:33 +0200
Subject: [PATCH hurd] libdiskfs: improve error handling

* libdiskfs/boot-start.c (diskfs_start_bootstrap): Improve error
handling.
---
 libdiskfs/boot-start.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libdiskfs/boot-start.c b/libdiskfs/boot-start.c
index 60bf33d..0fb3e89 100644
--- a/libdiskfs/boot-start.c
+++ b/libdiskfs/boot-start.c
@@ -291,12 +291,13 @@ diskfs_start_bootstrap ()
 		   /* Supply no intarray, since we have no info for it.
 		      With none supplied, it will use the defaults.  */
 		   NULL, 0, 0, 0, 0, 0);
+  if (err)
+    error (1, err, "Executing '%s'", exec_argv);
   free (exec_argv);
   free (exec_env);
   mach_port_deallocate (mach_task_self (), root_pt);
   mach_port_deallocate (mach_task_self (), startup_pt);
   mach_port_deallocate (mach_task_self (), bootpt);
-  assert_perror (err);
 }
 
 /* We look like an execserver to the execserver itself; it makes this
-- 
2.1.4