From 5cf825f3bf59e4f3b5b3533c37ce8633b75d309a Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Tue, 29 Sep 1998 00:22:01 +0000 Subject: [PATCH] fix from Ake Sandgren git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5171 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/kx/kx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appl/kx/kx.c b/appl/kx/kx.c index 4abfde152..74d8db0a5 100644 --- a/appl/kx/kx.c +++ b/appl/kx/kx.c @@ -552,7 +552,7 @@ check_for_passive (const char *disp) (*disp == ':' || strncmp(disp, "unix", 4) == 0 || strncmp(disp, "localhost", 9) == 0 - || strncmp(disp, local_hostname, strlen(local_hostname) == 0)); + || strncmp(disp, local_hostname, strlen(local_hostname)) == 0); } static void @@ -626,7 +626,7 @@ main(int argc, char **argv) signal (SIGCHLD, childhandler); signal (SIGUSR1, usr1handler); signal (SIGUSR2, usr2handler); - if (check_for_passive(getenv("DISPLAY"))) + if (force_passive || check_for_passive(getenv("DISPLAY"))) return doit_passive (argv[0], user, debugp, keepalivep, port); else return doit_active (argv[0], user, debugp, keepalivep, tcpp, port);