summaryrefslogtreecommitdiffstats
path: root/sys/compat
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2002-05-18 07:53:56 +0000
committermarcel <marcel@FreeBSD.org>2002-05-18 07:53:56 +0000
commit8b792f5cabe98616cdf265f25399b6094b16758b (patch)
tree5ad8e063c92d4dbaece943864e377c1e6d5a6700 /sys/compat
parentb4282fb943cfd5a08b7f9baef013c294db04cee2 (diff)
downloadFreeBSD-src-8b792f5cabe98616cdf265f25399b6094b16758b.zip
FreeBSD-src-8b792f5cabe98616cdf265f25399b6094b16758b.tar.gz
In msgrcv(), set msgtyp correctly. Hardwiring 0 as the message type
yields incorrect behaviour. The hardwiring was present in the very first commit that implemented msgrcv() (revision 1.4) and hasn't been changed since. The native implementation was complete at that time, so there doesn't seem to be a reason for the hardwiring from a technical point of view. Submitted by: Reinier Bezuidenhout <rbezuide@yahoo.com>
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/linux/linux_ipc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_ipc.c b/sys/compat/linux/linux_ipc.c
index aa45505..e893c1e 100644
--- a/sys/compat/linux/linux_ipc.c
+++ b/sys/compat/linux/linux_ipc.c
@@ -358,7 +358,7 @@ linux_msgrcv(struct thread *td, struct linux_msgrcv_args *args)
bsd_args.msqid = args->msqid;
bsd_args.msgp = args->msgp;
bsd_args.msgsz = args->msgsz;
- bsd_args.msgtyp = 0; /* XXX - args->msgtyp; */
+ bsd_args.msgtyp = args->msgtyp;
bsd_args.msgflg = args->msgflg;
return msgrcv(td, &bsd_args);
}
OpenPOWER on IntegriCloud