-fix #2436
authorChristian Grothoff <christian@grothoff.org>
Wed, 20 Jun 2012 11:12:26 +0000 (11:12 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 20 Jun 2012 11:12:26 +0000 (11:12 +0000)
src/fs/fs_download.c

index e31575cef02897d64c06de82971262ac2870d1aa..7273b56d88e263138b4540b1dccd64ec7b5a6021 100644 (file)
@@ -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);
     }