Ignore:
Timestamp:
Oct 14, 2008, 3:39:16 AM (13 years ago)
Author:
charles
Message:

make MAX_PATH_LENGTH private to libtransmission. add tr_dirname() and tr_basename() utility / portability wrappers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/fdlimit.c

    r6896 r6897  
    4141#endif
    4242#include <unistd.h>
    43 #include <libgen.h> /* dirname */
    4443#include <fcntl.h> /* O_LARGEFILE */
    4544
     
    125124    if( write )
    126125    {
    127         char *    tmp = tr_strdup( filename );
    128         const int err = tr_mkdirp( dirname( tmp ), 0777 ) ? errno : 0;
     126        char * tmp = tr_dirname( filename );
     127        const int err = tr_mkdirp( tmp, 0777 ) ? errno : 0;
    129128        tr_free( tmp );
    130129        tr_free( filename );
Note: See TracChangeset for help on using the changeset viewer.