svn commit: samba r3278 - in branches/SAMBA_4_0/source: auth client ldap_server lib lib/socket libads libcli libcli/util librpc/rpc ntvfs/posix rpc_server smb_server torture/rpc utils

tridge at samba.org tridge at samba.org
Wed Oct 27 03:15:43 GMT 2004


Author: tridge
Date: 2004-10-27 03:15:42 +0000 (Wed, 27 Oct 2004)
New Revision: 3278

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source&rev=3278&nolog=1

Log:
- rewrote the client side rpc connection code to use lib/socket/
  rather than doing everything itself. This greatly simplifies the
  code, although I really don't like the socket_recv() interface (it
  always allocates memory for you, which means an extra memcpy in this
  code)

- fixed several bugs in the socket_ipv4.c code, in particular client
  side code used a non-blocking connect but didn't handle EINPROGRESS,
  so it had no chance of working. Also fixed the error codes, using 
  map_nt_error_from_unix()

- cleaned up and expanded map_nt_error_from_unix()

- changed interpret_addr2() to not take a mem_ctx. It makes absolutely
  no sense to allocate a fixed size 4 byte structure like this. Dozens
  of places in the code were also using interpret_addr2() incorrectly
  (precisely because the allocation made no sense)


Modified:
   branches/SAMBA_4_0/source/auth/auth_domain.c
   branches/SAMBA_4_0/source/client/smbmount.c
   branches/SAMBA_4_0/source/ldap_server/ldap_server.c
   branches/SAMBA_4_0/source/lib/interface.c
   branches/SAMBA_4_0/source/lib/socket/socket.c
   branches/SAMBA_4_0/source/lib/socket/socket_ipv4.c
   branches/SAMBA_4_0/source/lib/socket/socket_unix.c
   branches/SAMBA_4_0/source/lib/util.c
   branches/SAMBA_4_0/source/lib/util_sock.c
   branches/SAMBA_4_0/source/lib/wins_srv.c
   branches/SAMBA_4_0/source/libads/ldap.c
   branches/SAMBA_4_0/source/libcli/namequery.c
   branches/SAMBA_4_0/source/libcli/util/errormap.c
   branches/SAMBA_4_0/source/librpc/rpc/dcerpc_sock.c
   branches/SAMBA_4_0/source/librpc/rpc/dcerpc_util.c
   branches/SAMBA_4_0/source/ntvfs/posix/pvfs_wait.c
   branches/SAMBA_4_0/source/rpc_server/dcerpc_sock.c
   branches/SAMBA_4_0/source/smb_server/smb_server.c
   branches/SAMBA_4_0/source/torture/rpc/epmapper.c
   branches/SAMBA_4_0/source/utils/nmblookup.c


Changeset:
Sorry, the patch is too large (1175 lines) to include; please use WebSVN to see it!
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source&rev=3278&nolog=1


More information about the samba-cvs mailing list