From owner-freebsd-stable Fri Aug 31 11: 3:59 2001 Delivered-To: freebsd-stable@freebsd.org Received: from lurza.secnetix.de (lurza.secnetix.de [212.66.1.130]) by hub.freebsd.org (Postfix) with ESMTP id 8154F37B401 for ; Fri, 31 Aug 2001 11:03:53 -0700 (PDT) Received: (from olli@localhost) by lurza.secnetix.de (8.9.3/8.9.3) id UAA94899; Fri, 31 Aug 2001 20:03:51 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Date: Fri, 31 Aug 2001 20:03:51 +0200 (CEST) Message-Id: <200108311803.UAA94899@lurza.secnetix.de> From: Oliver Fromme To: freebsd-stable@FreeBSD.ORG Reply-To: freebsd-stable@FreeBSD.ORG Subject: Re: Where did /etc/issue go from telnetd? (fwd) In-Reply-To: <20010831123012.D32037@sunbay.com> X-Newsgroups: list.freebsd-stable User-Agent: tin/1.5.4-20000523 ("1959") (UNIX) (FreeBSD/4.1-RELEASE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Ruslan Ermilov 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