svn commit: r203240 - projects/capabilities8/lib/libcapability
Robert Watson
rwatson at FreeBSD.org
Sat Jan 30 19:50:34 UTC 2010
Author: rwatson
Date: Sat Jan 30 19:50:33 2010
New Revision: 203240
URL: http://svn.freebsd.org/changeset/base/203240
Log:
Merge c173711 from the p4 TrustedBSD Capabilities branch to capabilities8:
Remove duplicate bzero of msghdr.
Sponsored by: Google, Inc.
Modified:
projects/capabilities8/lib/libcapability/libcapability.c
Modified: projects/capabilities8/lib/libcapability/libcapability.c
==============================================================================
--- projects/capabilities8/lib/libcapability/libcapability.c Sat Jan 30 19:49:14 2010 (r203239)
+++ projects/capabilities8/lib/libcapability/libcapability.c Sat Jan 30 19:50:33 2010 (r203240)
@@ -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#10 $
+ * $P4: //depot/projects/trustedbsd/capabilities/src/lib/libcapability/libcapability.c#11 $
*/
#include <sys/types.h>
@@ -179,7 +179,6 @@ _lc_send_rights(int fd, const void *msg,
iov.iov_base = __DECONST(void *, msg);
iov.iov_len = len;
- bzero(&msghdr, sizeof(msghdr));
bzero(&cmsgbuf, sizeof(cmsgbuf));
cmsg = (struct cmsghdr *)cmsgbuf;
cmsg->cmsg_len = CMSG_SPACE(fdcount * sizeof(int));
More information about the svn-src-projects
mailing list