diff options
author | Jeremy Messenger <mezz@FreeBSD.org> | 2009-06-19 17:07:26 +0000 |
---|---|---|
committer | Jeremy Messenger <mezz@FreeBSD.org> | 2009-06-19 17:07:26 +0000 |
commit | e8abbcb56fe3f4500c1d3876360673ad01d9bd61 (patch) | |
tree | d3673230cc7d3924c2b09a7762b8764c7de390bf /net-p2p/transmission-cli/files/patch-libtransmission_platform.c | |
parent | Upgrade to 7.5.20 to make fetchable again. (diff) |
-Update to 1.72.
-Add rc script in transmission-daemon. [1]
Requested by: many [1]
Submitted by: a few (all of those are incomplete) [1]
Diffstat (limited to 'net-p2p/transmission-cli/files/patch-libtransmission_platform.c')
-rw-r--r-- | net-p2p/transmission-cli/files/patch-libtransmission_platform.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/net-p2p/transmission-cli/files/patch-libtransmission_platform.c b/net-p2p/transmission-cli/files/patch-libtransmission_platform.c new file mode 100644 index 000000000000..1129f3add107 --- /dev/null +++ b/net-p2p/transmission-cli/files/patch-libtransmission_platform.c @@ -0,0 +1,33 @@ +--- libtransmission/platform.c.orig 2009-06-19 10:53:49.000000000 -0500 ++++ libtransmission/platform.c 2009-06-19 10:55:52.000000000 -0500 +@@ -232,22 +232,17 @@ + + if( !home ) + { +- home = tr_strdup( getenv( "HOME" ) ); +- +- if( !home ) +- { + #ifdef WIN32 +- char appdata[MAX_PATH]; /* SHGetFolderPath() requires MAX_PATH */ +- *appdata = '\0'; +- SHGetFolderPath( NULL, CSIDL_PERSONAL, NULL, 0, appdata ); +- home = tr_strdup( appdata ); ++ char appdata[MAX_PATH]; /* SHGetFolderPath() requires MAX_PATH */ ++ *appdata = '\0'; ++ SHGetFolderPath( NULL, CSIDL_PERSONAL, NULL, 0, appdata ); ++ home = tr_strdup( appdata ); + #else +- struct passwd * pw = getpwuid( getuid( ) ); +- if( pw ) +- home = tr_strdup( pw->pw_dir ); +- endpwent( ); ++ struct passwd * pw = getpwuid( getuid( ) ); ++ if( pw ) ++ home = tr_strdup( pw->pw_dir ); ++ endpwent( ); + #endif +- } + + if( !home ) + home = tr_strdup( "" ); |