diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-04-26 21:46:44 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-04-26 21:46:44 +0200 |
commit | d17629bf72d061ff24ba11c3c1a4de8276833d90 (patch) | |
tree | ec37dc7b1260aa6387f41686aecc58f57aa9eb7a | |
parent | ad40c233907a8b1c707ab9ae476a3e6d66c7aa6c (diff) |
create directories
-rw-r--r-- | src/exchange/taler-exchange-httpd.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c index b54f4bff1..941cb1479 100644 --- a/src/exchange/taler-exchange-httpd.c +++ b/src/exchange/taler-exchange-httpd.c @@ -787,6 +787,17 @@ main (int argc, return 1; } + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Creating listen socket '%s' with mode %o\n", + serve_unixpath, unixpath_mode); + + if (GNUNET_OK != GNUNET_DISK_directory_create_for_file (unixpath)) + { + GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_ERROR, + "mkdir", + serve_unixpath); + } + un = GNUNET_new (struct sockaddr_un); un->sun_family = AF_UNIX; strncpy (un->sun_path, serve_unixpath, sizeof (un->sun_path) - 1); |