diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-02-19 13:52:24 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-02-19 13:52:24 +0000 |
commit | 5bad33167fe0e7c696144ae7060eb89b0862f7b0 (patch) | |
tree | 3f4499669fb06ca1d8f1d3f8d6155475ffdfe86c /src/fs/fs_api.c | |
parent | 61cf48f3f9caab1c98686e5012fd400853f8fbdd (diff) | |
download | gnunet-5bad33167fe0e7c696144ae7060eb89b0862f7b0.tar.gz gnunet-5bad33167fe0e7c696144ae7060eb89b0862f7b0.zip |
handle case where partial download prevents proper bottom-up reconstruction as not all child-nodes are even attempted; handle case where probe returns results immediately while being created (do not break on that)
Diffstat (limited to 'src/fs/fs_api.c')
-rw-r--r-- | src/fs/fs_api.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fs/fs_api.c b/src/fs/fs_api.c index 3b8d125ad..148ec4bb9 100644 --- a/src/fs/fs_api.c +++ b/src/fs/fs_api.c | |||
@@ -687,7 +687,8 @@ get_write_handle_in_dir (struct GNUNET_FS_Handle *h, const char *ext, | |||
687 | * @param ent entity identifier | 687 | * @param ent entity identifier |
688 | */ | 688 | */ |
689 | void | 689 | void |
690 | GNUNET_FS_remove_sync_file_ (struct GNUNET_FS_Handle *h, const char *ext, | 690 | GNUNET_FS_remove_sync_file_ (struct GNUNET_FS_Handle *h, |
691 | const char *ext, | ||
691 | const char *ent) | 692 | const char *ent) |
692 | { | 693 | { |
693 | char *filename; | 694 | char *filename; |
@@ -700,7 +701,8 @@ GNUNET_FS_remove_sync_file_ (struct GNUNET_FS_Handle *h, const char *ext, | |||
700 | filename = get_serialization_file_name (h, ext, ent); | 701 | filename = get_serialization_file_name (h, ext, ent); |
701 | if (NULL != filename) | 702 | if (NULL != filename) |
702 | { | 703 | { |
703 | if (0 != UNLINK (filename)) | 704 | if ( (0 != UNLINK (filename)) && |
705 | (ENOENT != errno) ) | ||
704 | GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "unlink", filename); | 706 | GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "unlink", filename); |
705 | GNUNET_free (filename); | 707 | GNUNET_free (filename); |
706 | } | 708 | } |