PERFORCE change 164404 for review
Robert Watson
rwatson at FreeBSD.org
Mon Jun 15 08:00:09 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=164404
Change 164404 by rwatson at rwatson_freebsd_capabilities on 2009/06/15 07:59:11
Actually pass caller's receive buffer into recvmsg() for
_lc_recv_rights().
Affected files ...
.. //depot/projects/trustedbsd/capabilities/src/lib/libcapability/libcapability.c#8 edit
Differences ...
==== //depot/projects/trustedbsd/capabilities/src/lib/libcapability/libcapability.c#8 (text+ko) ====
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $P4: //depot/projects/trustedbsd/capabilities/src/lib/libcapability/libcapability.c#7 $
+ * $P4: //depot/projects/trustedbsd/capabilities/src/lib/libcapability/libcapability.c#8 $
*/
#include <sys/types.h>
@@ -221,6 +221,8 @@
bzero(cmsgbuf, sizeof(cmsgbuf));
bzero(&msghdr, sizeof(msghdr));
+ msghdr.msg_iov = &iov;
+ msghdr.msg_iovlen = 1;
msghdr.msg_control = cmsgbuf;
msghdr.msg_controllen = sizeof(cmsgbuf);
More information about the p4-projects
mailing list