Changeset 3883


Ignore:
Timestamp:
Nov 19, 2007, 12:59:26 PM (15 years ago)
Author:
charles
Message:

denis is right about r3880; we should respect umask

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/fdlimit.c

    r3880 r3883  
    9191    TR_MAX_OPEN_FILES = 8, /* real files, not sockets */
    9292
    93     TR_RESERVED_FDS   = 16, /* sockets reserved for tracker connections */
    94 
    95     TR_MKDIR_PERM = 0755,
    96 
    97     TR_CREAT_PERM = 0644
     93    TR_RESERVED_FDS = 16 /* sockets reserved for tracker connections */
    9894};
    9995
     
    136132    if( write ) {
    137133        char * tmp = tr_strdup( filename );
    138         const int val = tr_mkdirp( dirname(tmp), TR_MKDIR_PERM );
     134        const int val = tr_mkdirp( dirname(tmp), 0777 );
    139135        tr_free( tmp );
    140136        if( val )
     
    151147#endif
    152148    errno = 0;
    153     file->fd = open( filename, flags, TR_CREAT_PERM );
     149    file->fd = open( filename, flags, 0666 );
    154150    if( file->fd < 0 ) {
    155151        if( errno ) {
Note: See TracChangeset for help on using the changeset viewer.