diff options
Diffstat (limited to 'net-p2p/transmission/files')
-rw-r--r-- | net-p2p/transmission/files/transmission-2.50-segfault.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/net-p2p/transmission/files/transmission-2.50-segfault.patch b/net-p2p/transmission/files/transmission-2.50-segfault.patch new file mode 100644 index 000000000000..90d4ff2f0246 --- /dev/null +++ b/net-p2p/transmission/files/transmission-2.50-segfault.patch @@ -0,0 +1,19 @@ +http://bugs.gentoo.org/408067 +http://trac.transmissionbt.com/ticket/4573 + +--- gtk/conf.c ++++ gtk/conf.c +@@ -68,4 +68,5 @@ + { + const char * str; ++ const char * special_dl_dir = g_get_user_special_dir( G_USER_DIRECTORY_DOWNLOAD ); + + cf_check_older_configs( ); +@@ -107,6 +108,5 @@ + tr_bencDictAddInt( d, PREF_KEY_MAIN_WINDOW_Y, 50 ); + +- str = g_get_user_special_dir( G_USER_DIRECTORY_DOWNLOAD ); +- tr_bencDictAddStr( d, TR_PREFS_KEY_DOWNLOAD_DIR, str ); ++ tr_bencDictAddStr( d, TR_PREFS_KEY_DOWNLOAD_DIR, special_dl_dir ? special_dl_dir : str ); + + tr_bencDictAddStr( d, PREF_KEY_SORT_MODE, "sort-by-name" ); |