[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 82/98: utils/rpctrace: generalize code in rewrite_right
From: |
Samuel Thibault |
Subject: |
[hurd] 82/98: utils/rpctrace: generalize code in rewrite_right |
Date: |
Tue, 14 Jan 2014 02:00:04 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit d999b70a3f395afe06d430c14fdf02a64ac28c06
Author: Justus Winter <address@hidden>
Date: Wed Dec 11 12:51:10 2013 +0100
utils/rpctrace: generalize code in rewrite_right
* utils/rpctrace.c (rewrite_right): Generalize the code so we can use
rewrite_right to rewrite MACH_MSG_TYPE_PORT_SEND rights for non-rpc ports.
---
utils/rpctrace.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/utils/rpctrace.c b/utils/rpctrace.c
index ef7ab53..9433ef3 100644
--- a/utils/rpctrace.c
+++ b/utils/rpctrace.c
@@ -727,8 +727,6 @@ rewrite_right (mach_port_t *right, mach_msg_type_name_t
*type,
* has the receive right, we move the send right of the traced port to
* the destination; otherwise, we move the one of the send wrapper.
*/
- assert (req);
-
/* See if this is already one of our own wrapper ports. */
send_wrapper = ports_lookup_port (traced_bucket, *right, 0);
if (send_wrapper)
@@ -760,7 +758,7 @@ rewrite_right (mach_port_t *right, mach_msg_type_name_t
*type,
return TRACED_INFO (send_wrapper)->name;
}
- if (req->req_id == 3216) /* mach_port_extract_right */
+ if (req && req->req_id == 3216) /* mach_port_extract_right */
receiver_info = discover_receive_right (*right, dest);
else
receiver_info = discover_receive_right (*right, source);
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] 17/98: utils: implement portinfo --search, (continued)
- [hurd] 17/98: utils: implement portinfo --search, Samuel Thibault, 2014/01/13
- [hurd] 10/98: auth: fix use of uninitialized variable err, Samuel Thibault, 2014/01/13
- [hurd] 61/98: trans: fix transparent reauthentication in fakeroot, Samuel Thibault, 2014/01/13
- [hurd] 01/98: pfinet: fix emission on the loopback device, Samuel Thibault, 2014/01/13
- [hurd] 63/98: libfshelp: use a hash table in get-identity.c, Samuel Thibault, 2014/01/13
- [hurd] 90/98: trans/mtab: populate mtab objects on demand, Samuel Thibault, 2014/01/13
- [hurd] 09/98: init: fix memory leak, Samuel Thibault, 2014/01/13
- [hurd] 88/98: libports: remove the threadvars stack size hack, Samuel Thibault, 2014/01/13
- [hurd] 02/98: Normalize whitespace at the end of each file to '\n', Samuel Thibault, 2014/01/13
- [hurd] 84/98: utils/rpctrace: handle MACH_MSG_TYPE_PORT_SEND rights in trace_and_forward, Samuel Thibault, 2014/01/13
- [hurd] 82/98: utils/rpctrace: generalize code in rewrite_right,
Samuel Thibault <=
- [hurd] 86/98: utils/rpctrace: fix output so that replies can be attributed to requests, Samuel Thibault, 2014/01/13
- [hurd] 81/98: utils/mount: fix autodetection of fat file systems, Samuel Thibault, 2014/01/13
- [hurd] 79/98: trans/fakeroot: remove dead code, Samuel Thibault, 2014/01/13
- [hurd] 85/98: utils/rpctrace: escape non-printable characters in strings, Samuel Thibault, 2014/01/13
- [hurd] 80/98: trans/fakeroot: remove dead code, Samuel Thibault, 2014/01/13
- [hurd] 83/98: utils/rpctrace: generalize tracing code, Samuel Thibault, 2014/01/13
- [hurd] 89/98: libps: fix process user and system times, Samuel Thibault, 2014/01/13
- [hurd] 87/98: trans/fakeroot: shutdown the translator if the last client is gone, Samuel Thibault, 2014/01/13