Ignore:
Timestamp:
Jul 13, 2007, 10:22:46 PM (15 years ago)
Author:
charles
Message:

fix bug that gave the wrong peer count when uploading.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/fdlimit.c

    r2331 r2339  
    466466
    467467    /* Now try to really open the file */
     468    errno = 0;
    468469    file->file = open( path, write ? ( O_RDWR | O_CREAT ) : O_RDONLY, 0666 );
    469470    if( file->file < 0 )
    470471    {
    471472        ret = tr_ioErrorFromErrno();
    472         tr_err( "Could not open %s in %s (%d, %d)", name, folder, write, ret );
     473        if( errno )
     474            tr_err( "Couldn't open %s in %s: %s", name, folder, strerror(errno) );
     475        else
     476            tr_err( "Couldn't open %s in %s", name, folder );
    473477        return ret;
    474478    }
Note: See TracChangeset for help on using the changeset viewer.