From 2942c5b31dd4f7984c6c91bcb4b42d4daca32895 Mon Sep 17 00:00:00 2001 From: Sree Harsha Totakura Date: Mon, 10 Feb 2014 12:49:30 +0000 Subject: - create the directory for the UNIX socket file before binding to it. --- src/transport/plugin_transport_unix.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/transport/plugin_transport_unix.c b/src/transport/plugin_transport_unix.c index 6c0a02e2c..ec0956c0b 100644 --- a/src/transport/plugin_transport_unix.c +++ b/src/transport/plugin_transport_unix.c @@ -1277,6 +1277,8 @@ unix_transport_server_start (void *cls) GNUNET_log_strerror (GNUNET_ERROR_TYPE_ERROR, "socket"); return GNUNET_SYSERR; } + if ('\0' != un->sun_path[0]) + GNUNET_DISK_directory_create_for_file (un->sun_path); if (GNUNET_OK != GNUNET_NETWORK_socket_bind (plugin->unix_sock.desc, (const struct sockaddr *) un, un_len)) { -- cgit v1.2.3