diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2012-04-08 17:52:15 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2012-04-08 17:52:15 +0000 |
commit | 37c3e2fee1453f07ca2345385ff62ffd5a1cf653 (patch) | |
tree | 5632acfe33879cc989846dc92dfd584d4e24cb77 /net-p2p/transmission/files | |
parent | Stable for HPPA (bug #410931). (diff) | |
download | gentoo-2-37c3e2fee1453f07ca2345385ff62ffd5a1cf653.tar.gz gentoo-2-37c3e2fee1453f07ca2345385ff62ffd5a1cf653.tar.bz2 gentoo-2-37c3e2fee1453f07ca2345385ff62ffd5a1cf653.zip |
Fix segmentation fault when opening a torrent file on systems that don't define G_USER_DIRECTORY_DOWNLOAD wrt #408067 by Elijah El Lazkani
(Portage version: 2.2.0_alpha99/cvs/Linux x86_64)
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" ); |