summaryrefslogtreecommitdiff
path: root/source4/lib/socket/socket.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-10-17 05:07:07 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:57 -0500
commitf42402da83afa97f821d36b7974de98ddd5a2880 (patch)
treefe2541947382d29a45ae38bf8a93e349fbe74323 /source4/lib/socket/socket.c
parentfef617c31bd4a8be09449d6bc726c729ae758423 (diff)
downloadsamba-f42402da83afa97f821d36b7974de98ddd5a2880.tar.gz
samba-f42402da83afa97f821d36b7974de98ddd5a2880.tar.bz2
samba-f42402da83afa97f821d36b7974de98ddd5a2880.zip
r3013: added support for unix domain sockets in the generic socket library. I
will shortly be using this for a rewrite of the intra-smbd messaging library, which is needed to get lock timeouts working properly (and share modes, oplocks etc) (This used to be commit 6f4926d846965a901e40d24546eab356c4a537c7)
Diffstat (limited to 'source4/lib/socket/socket.c')
-rw-r--r--source4/lib/socket/socket.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/socket/socket.c b/source4/lib/socket/socket.c
index 4fde41a3c0..f364ca7c9f 100644
--- a/source4/lib/socket/socket.c
+++ b/source4/lib/socket/socket.c
@@ -240,5 +240,9 @@ const struct socket_ops *socket_getops_byname(const char *name, enum socket_type
return socket_ipv4_ops();
}
+ if (strequal("unix", name)) {
+ return socket_ipv4_ops();
+ }
+
return NULL;
}