diff options
author | dg <dg@FreeBSD.org> | 1995-09-11 21:02:02 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1995-09-11 21:02:02 +0000 |
commit | 1ae004d61172a0bbe38666e1551aefb1b5f1c028 (patch) | |
tree | 356aa7b66d84cb81b174f6b06a85b904b27ffc13 /eBones/libexec | |
parent | f87bf7f81c05fdf74fa88495e5819526c4a955de (diff) | |
download | FreeBSD-src-1ae004d61172a0bbe38666e1551aefb1b5f1c028.zip FreeBSD-src-1ae004d61172a0bbe38666e1551aefb1b5f1c028.tar.gz |
sys_term.c: killed sleep(1) as this should no longer be a problem with
the move of startslave().
telnetd.c: fix bug introduced with the move of startslave()...the number
of arguments was wrong and "level" and "user_name" had to be made globals.
Diffstat (limited to 'eBones/libexec')
-rw-r--r-- | eBones/libexec/telnetd/sys_term.c | 6 | ||||
-rw-r--r-- | eBones/libexec/telnetd/telnetd.c | 6 |
2 files changed, 3 insertions, 9 deletions
diff --git a/eBones/libexec/telnetd/sys_term.c b/eBones/libexec/telnetd/sys_term.c index ed171f1..7d17dfb 100644 --- a/eBones/libexec/telnetd/sys_term.c +++ b/eBones/libexec/telnetd/sys_term.c @@ -1779,12 +1779,6 @@ start_login(host, autologin, name) close(pty); #endif closelog(); - /* - * This sleep(1) is in here so that telnetd can - * finish up with the tty. There's a race condition - * the login banner message gets lost... - */ - sleep(1); execv(_PATH_LOGIN, argv); syslog(LOG_ERR, "%s: %m\n", _PATH_LOGIN); diff --git a/eBones/libexec/telnetd/telnetd.c b/eBones/libexec/telnetd/telnetd.c index 86efc5b..707c68a 100644 --- a/eBones/libexec/telnetd/telnetd.c +++ b/eBones/libexec/telnetd/telnetd.c @@ -782,6 +782,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. */ @@ -791,9 +793,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. @@ -1149,7 +1149,7 @@ telnet(f, p, host) * now. We delay this until here to insure option negotiation * is complete. */ - startslave(host); + startslave(host, level, user_name); nfd = ((f > p) ? f : p) + 1; for (;;) { |