SCCS-vsn: libexec/telnetd/telnetd.c 4.21
-static char sccsid[] = "@(#)telnetd.c 4.20 83/05/22";
+static char sccsid[] = "@(#)telnetd.c 4.21 83/05/24";
#include <sgtty.h>
#include <wait.h>
#include <netdb.h>
#include <sgtty.h>
#include <wait.h>
#include <netdb.h>
dup2(t, 1);
dup2(t, 2);
close(t);
dup2(t, 1);
dup2(t, 2);
close(t);
- execl("/bin/login", "telnet-login", "-h", host, 0);
+ execl("/bin/login", "login", "-h", host, 0);
fatalperror(f, "/bin/login", errno);
/*NOTREACHED*/
}
fatalperror(f, "/bin/login", errno);
/*NOTREACHED*/
}
telnet(f, p)
{
int on = 1;
telnet(f, p)
{
int on = 1;
net = f, pty = p;
ioctl(f, FIONBIO, &on);
net = f, pty = p;
ioctl(f, FIONBIO, &on);
*/
dooption(TELOPT_ECHO);
myopts[TELOPT_ECHO] = 1;
*/
dooption(TELOPT_ECHO);
myopts[TELOPT_ECHO] = 1;
+ /*
+ * Show banner that getty never gave.
+ */
+ gethostname(hostname, sizeof (hostname));
+ sprintf(nfrontp, BANNER, hostname, "");
+ nfrontp += strlen(nfrontp);
for (;;) {
int ibits = 0, obits = 0;
register int c;
for (;;) {
int ibits = 0, obits = 0;
register int c;