mirror of
https://github.com/transmission/transmission
synced 2025-03-04 18:48:06 +00:00
(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:
parent
7f1a419dd1
commit
4844555f26
1 changed files with 0 additions and 16 deletions
|
@ -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 ) {
|
||||
|
|
Loading…
Add table
Reference in a new issue