Changeset 1206


Ignore:
Timestamp:
Dec 14, 2006, 4:16:56 AM (15 years ago)
Author:
titer
Message:

Another one

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/io/libtransmission/fdlimit.c

    r1205 r1206  
    154154    if( ( ret = CheckFolder( folder, name, write ) ) )
    155155    {
    156         tr_err( "Can not open %s in %s (%d)", name, folder, ret );
     156        tr_err( "Can not open %s in %s (%d, %d)", name, folder, write, ret );
    157157        tr_lockUnlock( &f->lock );
    158158        return ret;
     
    201201    tr_dbg( "Opening %s in %s", name, folder );
    202202    asprintf( &path, "%s/%s", folder, name );
    203     f->open[winner].file = open( path, write ? O_RDWR|O_CREAT : O_RDONLY, 0 );
     203    f->open[winner].file = open( path, write ? ( O_RDWR | O_CREAT ) :
     204                                 O_RDONLY, 0666 );
    204205    free( path );
    205206    if( f->open[winner].file < 0 )
     
    207208        ret = ErrorFromErrno();
    208209        tr_lockUnlock( &f->lock );
    209         tr_err( "Could not open %s in %s (%d)", name, folder, ret );
     210        tr_err( "Could not open %s in %s (%d, %d)", name, folder, write, ret );
    210211        return ret;
    211212    }
Note: See TracChangeset for help on using the changeset viewer.