commit c557eb484c38e205b251ffcbad14a17c38c2b6d4 parent aa8a1d1faeee94b92c3bb9094cbaa1c1e63f1e38 Author: TheJackiMonster <thejackimonster@gmail.com> Date: Fri, 7 Jan 2022 00:24:15 +0100 Fixed issue with file_copy Signed-off-by: TheJackiMonster <thejackimonster@gmail.com> Diffstat:
| M | src/gnunet_chat_lib.c | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/gnunet_chat_lib.c b/src/gnunet_chat_lib.c @@ -640,7 +640,8 @@ GNUNET_CHAT_context_send_file (struct GNUNET_CHAT_Context *context, if (file) goto file_upload; - if ((GNUNET_OK != GNUNET_DISK_directory_create_for_file(filename)) || + if ((GNUNET_YES == GNUNET_DISK_file_test(filename)) || + (GNUNET_OK != GNUNET_DISK_directory_create_for_file(filename)) || (GNUNET_OK != GNUNET_DISK_file_copy(path, filename))) { GNUNET_free(filename);