(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.
This commit is contained in:
Jordan Lee 2011-03-16 03:19:56 +00:00
parent 7f1a419dd1
commit 4844555f26
1 changed files with 0 additions and 16 deletions

View File

@ -15,10 +15,6 @@
#include <stdlib.h> /* realloc */
#include <string.h> /* memcmp */
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <openssl/sha.h>
#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 ) {