summaryrefslogtreecommitdiff
path: root/debian/patches/0010-console-client-make-the-demuxer-payload-aware.patch
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2014-11-21 05:38:05 +0100
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-11-21 05:38:05 +0100
commitf8b1a9ceb00c1729c6b9aaa74b503d01f0becf57 (patch)
treecd0ce74c3695c6f24979e41472323a7b3083feca /debian/patches/0010-console-client-make-the-demuxer-payload-aware.patch
parenteb7ae44e4cf97c0933a6bf29370d35476ef04ed6 (diff)
add patch series
Diffstat (limited to 'debian/patches/0010-console-client-make-the-demuxer-payload-aware.patch')
-rw-r--r--debian/patches/0010-console-client-make-the-demuxer-payload-aware.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/debian/patches/0010-console-client-make-the-demuxer-payload-aware.patch b/debian/patches/0010-console-client-make-the-demuxer-payload-aware.patch
new file mode 100644
index 00000000..4fe68a42
--- /dev/null
+++ b/debian/patches/0010-console-client-make-the-demuxer-payload-aware.patch
@@ -0,0 +1,36 @@
+From ddc3d2f800bcd5d6e29098e059515d895e49a776 Mon Sep 17 00:00:00 2001
+From: Justus Winter <4winter@informatik.uni-hamburg.de>
+Date: Fri, 4 Apr 2014 16:53:25 +0200
+Subject: [PATCH hurd 10/29] console-client: make the demuxer payload-aware
+
+* console-client/trans.c (console_demuxer): make the demuxer payload-aware.
+---
+ console-client/trans.c | 12 ++++++++++--
+ 1 file changed, 10 insertions(+), 2 deletions(-)
+
+diff --git a/console-client/trans.c b/console-client/trans.c
+index 67cd149..59e8463 100644
+--- a/console-client/trans.c
++++ b/console-client/trans.c
+@@ -63,8 +63,16 @@ console_demuxer (mach_msg_header_t *inp,
+ ret = netfs_demuxer (inp, outp);
+ if (ret)
+ return ret;
+-
+- user = ports_lookup_port (netfs_port_bucket, inop->msgh_local_port, netfs_protid_class);
++
++ if (MACH_MSGH_BITS_LOCAL (inp->msgh_bits) ==
++ MACH_MSG_TYPE_PROTECTED_PAYLOAD)
++ user = ports_lookup_payload (netfs_port_bucket,
++ inop->msgh_protected_payload,
++ netfs_protid_class);
++ else
++ user = ports_lookup_port (netfs_port_bucket,
++ inop->msgh_local_port,
++ netfs_protid_class);
+ if (!user)
+ return ret;
+
+--
+2.1.3
+