summaryrefslogtreecommitdiff
path: root/source3/lib/util_sock.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/util_sock.c')
-rw-r--r--source3/lib/util_sock.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c
index 71e51d2771..d9b0f97259 100644
--- a/source3/lib/util_sock.c
+++ b/source3/lib/util_sock.c
@@ -901,6 +901,9 @@ int create_pipe_socket(char *dir, int dir_perms,
int s;
struct sockaddr_un sa;
+ DEBUG(10,("create_pipe_socket: %s %d %s %d\n",
+ dir, dir_perms, path, path_perms));
+
mkdir(dir, dir_perms);
if (chmod(dir, dir_perms) < 0)
@@ -912,7 +915,6 @@ int create_pipe_socket(char *dir, int dir_perms,
if (!remove(path))
{
DEBUG(0, ("remove on %s failed\n", path));
- return -1;
}
/* start listening on unix socket */
@@ -954,5 +956,7 @@ int create_pipe_socket(char *dir, int dir_perms,
return -1;
}
+ DEBUG(5,("unix socket opened: %s\n", path));
+
return s;
}