From f87bf7f81c05fdf74fa88495e5819526c4a955de Mon Sep 17 00:00:00 2001 From: dg Date: Mon, 11 Sep 1995 20:54:49 +0000 Subject: Fixed bug introduced with the change of startslave()...two arguments were chopped off of the function call and garbage was passed instead. The solution involves making some variable globals as well as fixing the call to have all the arguments. --- libexec/telnetd/telnetd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libexec/telnetd/telnetd.c b/libexec/telnetd/telnetd.c index 155ef56..b83b6a0 100644 --- a/libexec/telnetd/telnetd.c +++ b/libexec/telnetd/telnetd.c @@ -742,6 +742,8 @@ char remote_host_name[MAXHOSTNAMELEN]; extern void telnet P((int, int, char *)); +int level; +char user_name[256]; /* * Get a pty, scan input lines. */ @@ -751,9 +753,7 @@ doit(who) char *host, *inet_ntoa(); int t; struct hostent *hp; - int level; int ptynum; - char user_name[256]; /* * Find an available pty to use. @@ -1107,7 +1107,7 @@ telnet(f, p, host) * now. We delay this until here to insure option negotiation * is complete. */ - startslave(host); + startslave(host, level, user_name); for (;;) { fd_set ibits, obits, xbits; -- cgit v1.1