1*26bdd445SBrad BishopFrom 34ce93e1c50bfb88f92a687d4f82de55584f3f6a Mon Sep 17 00:00:00 2001
2*26bdd445SBrad BishopFrom: Alexander Kanavin <alex.kanavin@gmail.com>
3*26bdd445SBrad BishopDate: Wed, 11 Apr 2018 14:20:39 +0300
4*26bdd445SBrad BishopSubject: [PATCH] Do not look into $HOME when looking for gtk modules
5*26bdd445SBrad Bishop
6*26bdd445SBrad BishopOn the host it causes host contamination, on the target it's a
7*26bdd445SBrad Bishoppotential security issue. Gtk+3 has already removed this.
8*26bdd445SBrad Bishop
9*26bdd445SBrad BishopUpstream-Status: Inappropriate [gtk2 is in maintenance mode]
10*26bdd445SBrad BishopSigned-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
11*26bdd445SBrad Bishop---
12*26bdd445SBrad Bishop gtk/gtkmodules.c | 4 ----
13*26bdd445SBrad Bishop 1 file changed, 4 deletions(-)
14*26bdd445SBrad Bishop
15*26bdd445SBrad Bishopdiff --git a/gtk/gtkmodules.c b/gtk/gtkmodules.c
16*26bdd445SBrad Bishopindex 50729b6..e09b583 100644
17*26bdd445SBrad Bishop--- a/gtk/gtkmodules.c
18*26bdd445SBrad Bishop+++ b/gtk/gtkmodules.c
19*26bdd445SBrad Bishop@@ -65,10 +65,6 @@ get_module_path (void)
20*26bdd445SBrad Bishop   if (result)
21*26bdd445SBrad Bishop     return result;
22*26bdd445SBrad Bishop
23*26bdd445SBrad Bishop-  home_dir = g_get_home_dir();
24*26bdd445SBrad Bishop-  if (home_dir)
25*26bdd445SBrad Bishop-    home_gtk_dir = g_build_filename (home_dir, ".gtk-2.0", NULL);
26*26bdd445SBrad Bishop-
27*26bdd445SBrad Bishop   module_path_env = g_getenv ("GTK_PATH");
28*26bdd445SBrad Bishop   exe_prefix = g_getenv ("GTK_EXE_PREFIX");
29*26bdd445SBrad Bishop
30