1
0
forked from pool/xfce4-session
xfce4-session/xfce4-session-4.8.1-disable-hostname-check.patch
Sascha Peilicke b58b794e76 Accepting request 77095 from X11:xfce
- added xfce4-session-4.8.1-disable-hostname-check.patch so
  hostname checks are only performed when TCP connections are
  enabled

OBS-URL: https://build.opensuse.org/request/show/77095
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xfce4-session?expand=0&rev=40
2011-07-26 15:03:34 +00:00

32 lines
1.1 KiB
Diff

commit ba231e2eee82c321f473687e425d455fb36205d9
Author: Benedikt Meurer <benedikt.meurer@googlemail.com>
Date: Tue Jul 26 08:19:09 2011 +0200
Only perform hostname checks when TCP connections are enabled.
Based on a patch from Guido Berhoerster <gber@opensuse.org>.
xfce4-session/main.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/xfce4-session/main.c b/xfce4-session/main.c
index 0466f48..8f7c003 100644
--- a/xfce4-session/main.c
+++ b/xfce4-session/main.c
@@ -247,9 +247,12 @@ main (int argc, char **argv)
dpy = gdk_display_get_default ();
init_display (manager, dpy, channel, opt_disable_tcp);
- /* verify that the DNS settings are ok */
- xfsm_splash_screen_next (splash_screen, _("Verifying DNS settings"));
- xfsm_dns_check ();
+ if (!opt_disable_tcp && xfconf_channel_get_bool (channel, "/security/EnableTcp", FALSE))
+ {
+ /* verify that the DNS settings are ok */
+ xfsm_splash_screen_next (splash_screen, _("Verifying DNS settings"));
+ xfsm_dns_check ();
+ }
xfsm_splash_screen_next (splash_screen, _("Loading session data"));