Ignore:
Timestamp:
Jul 6, 2007, 5:19:34 PM (15 years ago)
Author:
charles
Message:

fix inout.c read/write mode bug.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/inout.c

    r2254 r2300  
    4444    if( !file->length )
    4545        return 0;
    46     else if ((fd = tr_fdFileOpen ( tor->destination, file->name, TRUE )) < 0)
     46    else if ((fd = tr_fdFileOpen ( tor->destination, file->name, ioMode==TR_IO_WRITE )) < 0)
    4747        ret = fd;
    4848    else if( lseek( fd, (off_t)fileOffset, SEEK_SET ) == ((off_t)-1) )
Note: See TracChangeset for help on using the changeset viewer.