Changeset 12173


Ignore:
Timestamp:
Mar 16, 2011, 3:19:56 AM (11 years ago)
Author:
jordan
Message:

(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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/inout.c

    r12172 r12173  
    1616#include <string.h> /* memcmp */
    1717
    18 #include <sys/types.h>
    19 #include <sys/stat.h>
    20 #include <unistd.h>
    21 
    2218#include <openssl/sha.h>
    2319
     
    116112
    117113        tr_free( subpath );
    118     }
    119 
    120     /* check that the file corresponding to 'fd' still exists */
    121     if( fd >= 0 )
    122     {
    123         struct stat sb;
    124 
    125         if( !fstat( fd, &sb ) && sb.st_nlink < 1 )
    126         {
    127             tr_torrentSetLocalError( tor, "Please Verify Local Data! A file disappeared: \"%s\"", file->name );
    128             err = ENOENT;
    129         }
    130114    }
    131115
Note: See TracChangeset for help on using the changeset viewer.