commit d17629bf72d061ff24ba11c3c1a4de8276833d90
parent ad40c233907a8b1c707ab9ae476a3e6d66c7aa6c
Author: Florian Dold <florian.dold@gmail.com>
Date: Tue, 26 Apr 2016 21:46:44 +0200
create directories
Diffstat:
1 file changed, 11 insertions(+), 0 deletions(-)
diff --git 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);