~ubuntu-branches/ubuntu/maverick/openldap/maverick-proposed

« back to all changes in this revision

Viewing changes to libraries/libldap/os-local.c

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug
  • Date: 2009-09-07 13:41:10 UTC
  • mto: This revision was merged to the branch mainline in revision 19.
  • Revision ID: james.westby@ubuntu.com-20090907134110-jsdrvn0atu1fex4m
Tags: upstream-2.4.18
ImportĀ upstreamĀ versionĀ 2.4.18

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* os-local.c -- platform-specific domain socket code */
2
 
/* $OpenLDAP: pkg/ldap/libraries/libldap/os-local.c,v 1.44.2.8 2009/02/17 21:02:51 quanah Exp $ */
 
2
/* $OpenLDAP: pkg/ldap/libraries/libldap/os-local.c,v 1.44.2.9 2009/08/12 23:48:32 quanah Exp $ */
3
3
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
4
4
 *
5
5
 * Copyright 1998-2009 The OpenLDAP Foundation.
234
234
                                msg.msg_accrights = (char *)fds;
235
235
                                msg.msg_accrightslen = sizeof(int);
236
236
# endif /* HAVE_STRUCT_MSGHDR_MSG_CONTROL */
237
 
                                getpeername( s, sa, &salen );
 
237
                                getpeername( s, (struct sockaddr *) sa, &salen );
238
238
                                fchmod( fds[0], S_ISUID|S_IRWXU );
239
239
                                write( fds[1], sa, salen );
240
240
                                sendmsg( s, &msg, 0 );