gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-merchant] branch master updated: #5784


From: gnunet
Subject: [GNUnet-SVN] [taler-merchant] branch master updated: #5784
Date: Fri, 28 Jun 2019 18:37:27 +0200

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new 781414d  #5784
781414d is described below

commit 781414d7db750b0f450b66eefc5ad17ba5c14774
Author: Marcello Stanisci <address@hidden>
AuthorDate: Fri Jun 28 18:36:36 2019 +0200

    #5784
---
 src/backend/taler-merchant-httpd.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/src/backend/taler-merchant-httpd.c 
b/src/backend/taler-merchant-httpd.c
index a1397ed..4b2f349 100644
--- a/src/backend/taler-merchant-httpd.c
+++ b/src/backend/taler-merchant-httpd.c
@@ -850,6 +850,20 @@ wireformat_iterator_cb (void *cls,
                    "url", payto,
                    "salt", salt_str);
     GNUNET_free (salt_str);
+
+    /* Make sure every path component exists.  */
+    if (GNUNET_OK != GNUNET_DISK_directory_create_for_file (fn))
+    {
+      GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_ERROR,
+                                "mkdir",
+                                fn);
+      GNUNET_free (fn);
+      GNUNET_free (payto);
+      json_decref (j);
+      iic->ret = GNUNET_SYSERR;
+      return;
+    }
+
     if (0 != json_dump_file (j,
                              fn,
                              JSON_COMPACT | JSON_SORT_KEYS))

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]