diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2022-01-07 00:24:15 +0100 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2022-01-07 00:24:15 +0100 |
commit | c557eb484c38e205b251ffcbad14a17c38c2b6d4 (patch) | |
tree | 186642c0be321c9838217879129267e3d64a8211 | |
parent | aa8a1d1faeee94b92c3bb9094cbaa1c1e63f1e38 (diff) | |
download | libgnunetchat-c557eb484c38e205b251ffcbad14a17c38c2b6d4.tar.gz libgnunetchat-c557eb484c38e205b251ffcbad14a17c38c2b6d4.zip |
Fixed issue with file_copy
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
-rw-r--r-- | src/gnunet_chat_lib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gnunet_chat_lib.c b/src/gnunet_chat_lib.c index 6447e2d..d5d516d 100644 --- 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, | |||
640 | if (file) | 640 | if (file) |
641 | goto file_upload; | 641 | goto file_upload; |
642 | 642 | ||
643 | if ((GNUNET_OK != GNUNET_DISK_directory_create_for_file(filename)) || | 643 | if ((GNUNET_YES == GNUNET_DISK_file_test(filename)) || |
644 | (GNUNET_OK != GNUNET_DISK_directory_create_for_file(filename)) || | ||
644 | (GNUNET_OK != GNUNET_DISK_file_copy(path, filename))) | 645 | (GNUNET_OK != GNUNET_DISK_file_copy(path, filename))) |
645 | { | 646 | { |
646 | GNUNET_free(filename); | 647 | GNUNET_free(filename); |