Date: Wed, 28 Jun 2006 20:25:36 GMT From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 100230 for review Message-ID: <200606282025.k5SKPa7q049443@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=100230 Change 100230 by jhb@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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606282025.k5SKPa7q049443>