fix from Ake Sandgren <ake@cs.umu.se>

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5171 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1998-09-29 00:22:01 +00:00
parent 117b9646fd
commit 5cf825f3bf

View File

@@ -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);