[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: do create directory if it doesn't exist
From: |
gnunet |
Subject: |
[gnunet] branch master updated: do create directory if it doesn't exist |
Date: |
Sat, 11 Apr 2020 22:00:29 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new f490c0f3f do create directory if it doesn't exist
f490c0f3f is described below
commit f490c0f3f5beb9ada5d05e01a6a01889d9902a2b
Author: Christian Grothoff <address@hidden>
AuthorDate: Sat Apr 11 21:55:51 2020 +0200
do create directory if it doesn't exist
---
src/util/crypto_ecc_setup.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/util/crypto_ecc_setup.c b/src/util/crypto_ecc_setup.c
index 5167a33fb..6c71030b2 100644
--- a/src/util/crypto_ecc_setup.c
+++ b/src/util/crypto_ecc_setup.c
@@ -143,6 +143,14 @@ atomic_write_to_file (const char *filename,
char *tmpl;
int fd;
+ if (GNUNET_OK !=
+ GNUNET_DISK_directory_create_for_file (filename))
+ {
+ GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING,
+ "mkstemp",
+ filename);
+ return GNUNET_SYSERR;
+ }
{
char *dname;
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: do create directory if it doesn't exist,
gnunet <=