summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rw-r--r--debian/patches/fix-devnode0001-devnode-fix-falling-back-to-the-kernel-driver.patch28
-rw-r--r--debian/patches/series1
2 files changed, 29 insertions, 0 deletions
diff --git a/debian/patches/fix-devnode0001-devnode-fix-falling-back-to-the-kernel-driver.patch b/debian/patches/fix-devnode0001-devnode-fix-falling-back-to-the-kernel-driver.patch
new file mode 100644
index 00000000..62b22e35
--- /dev/null
+++ b/debian/patches/fix-devnode0001-devnode-fix-falling-back-to-the-kernel-driver.patch
@@ -0,0 +1,28 @@
+From 381f1eb72cf345df255903d4e875da5b6ac2e233 Mon Sep 17 00:00:00 2001
+From: Justus Winter <4winter@informatik.uni-hamburg.de>
+Date: Sat, 2 Jan 2016 19:18:40 +0100
+Subject: [PATCH hurd] devnode: fix falling back to the kernel driver
+
+* devnode/devnode.c (parse_opt): Do not exit if opening the master
+device fails.
+---
+ devnode/devnode.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/devnode/devnode.c b/devnode/devnode.c
+index 2802471..cd54450 100644
+--- a/devnode/devnode.c
++++ b/devnode/devnode.c
+@@ -298,7 +298,8 @@ parse_opt (int opt, char *arg, struct argp_state *state)
+ master_file = arg;
+ master_device = file_name_lookup (arg, 0, 0);
+ if (master_device == MACH_PORT_NULL)
+- error (1, errno, "file_name_lookup");
++ error (0, 0, "%s: %s.\nFalling back to kernel driver.",
++ arg, strerror (errno));
+ break;
+ case 'n':
+ user_device_name = arg;
+--
+2.1.4
+
diff --git a/debian/patches/series b/debian/patches/series
index 2636bdd7..711b6eb9 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -37,3 +37,4 @@ translators-list0002-fu.patch
translators-list0003-libfshelp-improve-translator-list.patch
translators-list0004-add-iteration.patch
nodeihash0001-xxx-fix-node-iteration.patch
+fix-devnode0001-devnode-fix-falling-back-to-the-kernel-driver.patch