Ticket #1595: 0001-Always-search-in-PACKAGE_DATA_DIR-when-serving-Web-f.patch

File 0001-Always-search-in-PACKAGE_DATA_DIR-when-serving-Web-f.patch, 1.1 KB (added by wereHamster, 12 years ago)
  • libtransmission/platform.c

    From 3a1c7d8ef78b51dd3f722c69e4668aa415cb2bbe Mon Sep 17 00:00:00 2001
    From: Tomas Carnecky <tom@dbservice.com>
    Date: Sun, 30 Nov 2008 18:08:56 +0100
    Subject: [PATCH] Always search in PACKAGE_DATA_DIR when serving Web files.
    
    ---
     libtransmission/platform.c |    4 ++--
     1 files changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/libtransmission/platform.c b/libtransmission/platform.c
    index f1e5a59..432f417 100644
    a b tr_getClutchDir( const tr_session * session UNUSED ) 
    550550                char * dhome = tr_buildPath( getHomeDir( ), ".local", "share", NULL );
    551551                tr_list_append( &candidates, dhome );
    552552            }
     553           
     554            tr_list_append( &candidates, tr_strdup( PACKAGE_DATA_DIR ) );
    553555
    554556            /* XDG_DATA_DIRS are the backup directories */
    555557            tmp = getenv( "XDG_DATA_DIRS" );
    556             if( !tmp || !*tmp )
    557                 tmp =  PACKAGE_DATA_DIR ":/usr/local/share/:/usr/share/";
    558558            while( tmp && *tmp ) {
    559559                const char * end = strchr( tmp, ':' );
    560560                if( end ) {