From 4844555f268a434b1ed7910c763d7a5f61ab1637 Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Wed, 16 Mar 2011 03:19:56 +0000 Subject: [PATCH] (trunk libT) remove the "a file disappeared!" check from readOrWriteFile(). In both the reading and writing case, this is handled with human-readable errors further up the call chain. --- libtransmission/inout.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/libtransmission/inout.c b/libtransmission/inout.c index dea0b2450..3bcf5adc1 100644 --- a/libtransmission/inout.c +++ b/libtransmission/inout.c @@ -15,10 +15,6 @@ #include /* realloc */ #include /* memcmp */ -#include -#include -#include - #include #include "transmission.h" @@ -117,18 +113,6 @@ readOrWriteBytes( tr_session * session, tr_free( subpath ); } - /* check that the file corresponding to 'fd' still exists */ - if( fd >= 0 ) - { - struct stat sb; - - if( !fstat( fd, &sb ) && sb.st_nlink < 1 ) - { - tr_torrentSetLocalError( tor, "Please Verify Local Data! A file disappeared: \"%s\"", file->name ); - err = ENOENT; - } - } - if( !err ) { if( ioMode == TR_IO_READ ) {