From: Christian Grothoff Date: Wed, 20 Jun 2012 11:12:26 +0000 (+0000) Subject: -fix #2436 X-Git-Tag: initial-import-from-subversion-38251~12939 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0ec176660b52cfb5c3eb14dfbb19ca235ee971fd;p=oweals%2Fgnunet.git -fix #2436 --- diff --git a/src/fs/fs_download.c b/src/fs/fs_download.c index e31575cef..7273b56d8 100644 --- a/src/fs/fs_download.c +++ b/src/fs/fs_download.c @@ -2302,7 +2302,8 @@ GNUNET_FS_download_stop (struct GNUNET_FS_DownloadContext *dc, int do_delete) { if ((dc->completed != dc->length) && (GNUNET_YES == do_delete)) { - if (0 != UNLINK (dc->filename)) + if ( (0 != UNLINK (dc->filename)) && + (ENOENT != errno) ) GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "unlink", dc->filename); }