diff options
Diffstat (limited to 'debian/patches/introspection0011-fixup_libintrospection.patch')
-rw-r--r-- | debian/patches/introspection0011-fixup_libintrospection.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/debian/patches/introspection0011-fixup_libintrospection.patch b/debian/patches/introspection0011-fixup_libintrospection.patch new file mode 100644 index 00000000..7ab711b7 --- /dev/null +++ b/debian/patches/introspection0011-fixup_libintrospection.patch @@ -0,0 +1,27 @@ +From e6d3936e237778ec604d0a54cb898514509d1d0e Mon Sep 17 00:00:00 2001 +From: Justus Winter <4winter@informatik.uni-hamburg.de> +Date: Thu, 24 Sep 2015 23:11:58 +0200 +Subject: [PATCH hurd 11/12] fixup_libintrospection + +--- + libintrospection/trace.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/libintrospection/trace.c b/libintrospection/trace.c +index 392eb3a..c053916 100644 +--- a/libintrospection/trace.c ++++ b/libintrospection/trace.c +@@ -160,7 +160,9 @@ introspection_extract_message (mach_msg_header_t *msgp, + if (memcmp (&footer->ports_type, &ports_type, sizeof ports_type) != 0) + return MIG_BAD_ARGUMENTS; + +- msgp->msgh_bits = (mach_msg_bits_t) footer->bits; ++ msgp->msgh_bits = ++ ((mach_msg_bits_t) footer->bits & ~MACH_MSGH_BITS_PORTS_MASK) ++ || MACH_MSGH_BITS (MACH_MSG_TYPE_PORT_NAME, MACH_MSG_TYPE_PORT_NAME); + msgp->msgh_remote_port = footer->remote_port; + msgp->msgh_local_port = footer->local_port; + msgp->msgh_size = size; +-- +2.1.4 + |