Changeset 6328


Ignore:
Timestamp:
Jul 14, 2008, 4:00:20 PM (13 years ago)
Author:
charles
Message:

#1084: Make web' and clutch' synonymous in the backend

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/platform.c

    r6323 r6328  
    528528    if( !s )
    529529    {
    530         char path[MAX_PATH_LENGTH];
     530        char path[MAX_PATH_LENGTH] = { '\0' };
    531531
    532532        if(( s = getenv( "CLUTCH_HOME" )))
     533        {
     534            snprintf( path, sizeof( path ), s );
     535        }
     536        else if(( s = getenv( "TRANSMISSION_WEB_HOME" )))
    533537        {
    534538            snprintf( path, sizeof( path ), s );
     
    576580
    577581            for( l=candidates; l; l=l->next ) {
    578                 tr_buildPath( path, sizeof( path ), l->data, "transmission", "clutch", NULL );
     582                tr_buildPath( path, sizeof( path ), l->data, "transmission", "web", NULL );
    579583                if( isClutchDir( path ) )
    580584                    break;
  • trunk/libtransmission/rpc-server.c

    r6323 r6328  
    268268
    269269        if( clutchDir && *clutchDir ) {
    270             char * clutchAlias = tr_strdup_printf( "%s=%s", "/transmission/clutch", clutchDir );
     270            char * clutchAlias = tr_strdup_printf( "%s=%s,%s=%s",
     271                "/transmission/clutch", clutchDir,
     272                "/transmission/web", clutchDir );
    271273            tr_inf( _( "Serving the web interface files from \"%s\"" ), clutchDir );
    272274            shttpd_set_option( server->ctx, "aliases", clutchAlias );
Note: See TracChangeset for help on using the changeset viewer.