summaryrefslogtreecommitdiffstats
path: root/source/lib/socket/socket.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-10-17 05:07:07 +0000
committerAndrew Tridgell <tridge@samba.org>2004-10-17 05:07:07 +0000
commit65f3f3940a6394f0568ae04a5ec7534d6a818759 (patch)
treeca26f02f7d01fffd8c9772e07f925c0381249ea9 /source/lib/socket/socket.c
parent948ecd4f1c19d21caf23b17b49536e543dfbcd25 (diff)
downloadsamba-65f3f3940a6394f0568ae04a5ec7534d6a818759.tar.gz
samba-65f3f3940a6394f0568ae04a5ec7534d6a818759.tar.xz
samba-65f3f3940a6394f0568ae04a5ec7534d6a818759.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)
Diffstat (limited to 'source/lib/socket/socket.c')
-rw-r--r--source/lib/socket/socket.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/lib/socket/socket.c b/source/lib/socket/socket.c
index 4fde41a3c0b..f364ca7c9f1 100644
--- a/source/lib/socket/socket.c
+++ b/source/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;
}