From 0ec176660b52cfb5c3eb14dfbb19ca235ee971fd Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 20 Jun 2012 11:12:26 +0000 Subject: -fix #2436 --- src/fs/fs_download.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/fs/fs_download.c') 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); } -- cgit v1.2.3