diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2014-02-10 12:49:30 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2014-02-10 12:49:30 +0000 |
commit | 2942c5b31dd4f7984c6c91bcb4b42d4daca32895 (patch) | |
tree | 9008762f56a9c9ca18bc48468101d9baf5283057 /src/transport | |
parent | de3edfe8540884dc55e90d3ab18eae3449cba04f (diff) | |
download | gnunet-2942c5b31dd4f7984c6c91bcb4b42d4daca32895.tar.gz gnunet-2942c5b31dd4f7984c6c91bcb4b42d4daca32895.zip |
- create the directory for the UNIX socket file before binding to it.
Diffstat (limited to 'src/transport')
-rw-r--r-- | src/transport/plugin_transport_unix.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) | |||
1277 | GNUNET_log_strerror (GNUNET_ERROR_TYPE_ERROR, "socket"); | 1277 | GNUNET_log_strerror (GNUNET_ERROR_TYPE_ERROR, "socket"); |
1278 | return GNUNET_SYSERR; | 1278 | return GNUNET_SYSERR; |
1279 | } | 1279 | } |
1280 | if ('\0' != un->sun_path[0]) | ||
1281 | GNUNET_DISK_directory_create_for_file (un->sun_path); | ||
1280 | if (GNUNET_OK != | 1282 | if (GNUNET_OK != |
1281 | GNUNET_NETWORK_socket_bind (plugin->unix_sock.desc, (const struct sockaddr *) un, un_len)) | 1283 | GNUNET_NETWORK_socket_bind (plugin->unix_sock.desc, (const struct sockaddr *) un, un_len)) |
1282 | { | 1284 | { |