Date: Fri, 31 Aug 2001 20:03:51 +0200 (CEST) From: Oliver Fromme <olli@secnetix.de> To: freebsd-stable@FreeBSD.ORG Subject: Re: Where did /etc/issue go from telnetd? (fwd) Message-ID: <200108311803.UAA94899@lurza.secnetix.de> In-Reply-To: <20010831123012.D32037@sunbay.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Ruslan Ermilov <ru@freebsd.org> wrote: > telnetd(8) sessions are not serviced through getty(8). Right, telnetd sessions don't use getty. _But_ telnetd still reads the "im" and "if" strings from the "default" entry in /etc/gettytab. See the source. But the strange thing is, it still doesn't work. I have no idea why. Regards Oliver PS: This is from src/libexec/telnetd/telnetd.c, about line 1100: if (getent(defent, "default") == 1) { char *Getstr(); char *cp=defstrs; HE = Getstr("he", &cp); HN = Getstr("hn", &cp); IM = Getstr("im", &cp); IF = Getstr("if", &cp); if (HN && *HN) (void) strcpy(host_name, HN); if (IF && (if_fd = open(IF, O_RDONLY, 000)) != -1) IM = 0; if (IM == 0) IM = ""; } else { IM = DEFAULT_IM; HE = 0; } edithost(HE, host_name); if (hostinfo && *IM) putf(IM, ptyibuf2); else if (IF && if_fd != -1) { fstat (if_fd, &statbuf); if_buf = (char *) mmap (0, statbuf.st_size, PROT_READ, 0, if_fd, 0); putf(if_buf, ptyibuf2); munmap (if_buf, statbuf.st_size); close (if_fd); } -- Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "All that we see or seem is just a dream within a dream" (E. A. Poe) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108311803.UAA94899>