aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-04-26 21:46:37 +0200
committerFlorian Dold <florian.dold@gmail.com>2016-04-26 21:46:37 +0200
commitf47347add14651dc0156c022f7b662e06350df85 (patch)
tree942a787cd409fb46522cc30d83d48297d9888551
parenta27679c670c8223819d319b97302858fd772530c (diff)
create directories
-rw-r--r--src/backend/taler-merchant-httpd.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/backend/taler-merchant-httpd.c b/src/backend/taler-merchant-httpd.c
index 1b0ce9d1..01681dc7 100644
--- a/src/backend/taler-merchant-httpd.c
+++ b/src/backend/taler-merchant-httpd.c
@@ -698,6 +698,13 @@ run (void *cls,
"Creating listen socket '%s' with mode %o\n",
serve_unixpath, unixpath_mode);
+ if (GNUNET_OK != GNUNET_DISK_directory_create_for_file (serve_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);