PERFORCE change 100230 for review
John Baldwin
jhb at FreeBSD.org
Wed Jun 28 20:25:37 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=100230
Change 100230 by jhb at jhb_mutex on 2006/06/28 20:25:17
Don't copyin a msqid_ds for IPC_RMID. Neither the base system nor
ibcs2 do and kern_msgctl() will just ignore it.
Affected files ...
.. //depot/projects/smpng/sys/compat/svr4/svr4_ipc.c#15 edit
Differences ...
==== //depot/projects/smpng/sys/compat/svr4/svr4_ipc.c#15 (text+ko) ====
@@ -500,11 +500,7 @@
return (kern_msgctl(td, uap->msqid, IPC_SET, &bs));
case SVR4_IPC_RMID:
- error = copyin(uap->buf, &ss, sizeof ss);
- if (error)
- return error;
- svr4_to_bsd_msqid_ds(&ss, &bs);
- return (kern_msgctl(td, uap->msqid, IPC_RMID, &bs));
+ return (kern_msgctl(td, uap->msqid, IPC_RMID, NULL));
default:
return EINVAL;
More information about the p4-projects
mailing list