svn commit: samba r11502 - in
branches/SAMBA_4_0/source/lib/socket_wrapper: .
metze at samba.org
metze at samba.org
Fri Nov 4 08:02:21 GMT 2005
Author: metze
Date: 2005-11-04 08:02:20 +0000 (Fri, 04 Nov 2005)
New Revision: 11502
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11502
Log:
make sure we always use the 7 chars for the unix socket name.
this is to test if that works on irix 6.4 where we can only use 16 chars for the sun_path
of the unix sockets.
the plan is to make multiple interfaces possible with socket wrapper,
and the format will change to ("%c%02X%04X", type, iface, port),
which is also 7 char to the file name
metze
Modified:
branches/SAMBA_4_0/source/lib/socket_wrapper/socket_wrapper.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/socket_wrapper/socket_wrapper.c
===================================================================
--- branches/SAMBA_4_0/source/lib/socket_wrapper/socket_wrapper.c 2005-11-04 04:07:45 UTC (rev 11501)
+++ branches/SAMBA_4_0/source/lib/socket_wrapper/socket_wrapper.c 2005-11-04 08:02:20 UTC (rev 11502)
@@ -63,7 +63,7 @@
with this format we have 8 chars left for the directory name
*/
-#define SOCKET_FORMAT "%u_%u"
+#define SOCKET_FORMAT "%u_%05u"
static struct sockaddr *sockaddr_dup(const void *data, socklen_t len)
{
More information about the samba-cvs
mailing list