Changeset 5515


Ignore:
Timestamp:
Apr 5, 2008, 4:45:35 PM (14 years ago)
Author:
charles
Message:

don't flood the message log when you don't have a blocklist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/blocklist.c

    r5485 r5515  
    7171    blocklistClose( b );
    7272
     73    if( stat( b->filename, &st ) == -1 )
     74        return;
     75
    7376    fd = open( b->filename, O_RDONLY );
    7477    if( fd == -1 ) {
     
    7679        return;
    7780    }
    78     if( fstat( fd, &st ) == -1 ) {
    79         tr_err( err_fmt, b->filename, tr_strerror(errno) );
    80         close( fd );
    81         return;
    82     }
     81
    8382    b->rules = mmap( 0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0 );
    8483    if( !b->rules ) {
Note: See TracChangeset for help on using the changeset viewer.