diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-11-04 08:02:20 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:45:46 -0500 |
commit | 5f653c145618b474b753a3b2b42481e9b5309cdd (patch) | |
tree | a3a55cf5db9ada2ad05890e27785ce6682f88aff /source4 | |
parent | b00252c5b8235a1c962db86b67d45417457a4337 (diff) | |
download | samba-5f653c145618b474b753a3b2b42481e9b5309cdd.tar.gz samba-5f653c145618b474b753a3b2b42481e9b5309cdd.tar.bz2 samba-5f653c145618b474b753a3b2b42481e9b5309cdd.zip |
r11502: 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
(This used to be commit e60d491864ad7ea7f981bc1918ace4ee3fb2d77a)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/socket_wrapper/socket_wrapper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/socket_wrapper/socket_wrapper.c b/source4/lib/socket_wrapper/socket_wrapper.c index 1c3d5c3bfc..d95806783d 100644 --- a/source4/lib/socket_wrapper/socket_wrapper.c +++ b/source4/lib/socket_wrapper/socket_wrapper.c @@ -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) { |