From owner-freebsd-hackers Fri Mar 8 15:58:21 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mailout08.sul.t-online.com (mailout08.sul.t-online.com [194.25.134.20]) by hub.freebsd.org (Postfix) with ESMTP id 4BEE637B416 for ; Fri, 8 Mar 2002 15:58:16 -0800 (PST) Received: from fwd08.sul.t-online.de by mailout08.sul.t-online.com with smtp id 16jTQX-0004fa-07; Sat, 09 Mar 2002 00:05:29 +0100 Received: from pc5.abc (520067998749-0001@[217.233.117.73]) by fmrl08.sul.t-online.com with esmtp id 16jTQX-07dWDYC; Sat, 9 Mar 2002 00:05:29 +0100 Received: (from nicolas@localhost) by pc5.abc (8.11.6/8.11.6) id g28N5R908568 for freebsd-hackers@freebsd.org; Sat, 9 Mar 2002 00:05:27 +0100 (CET) (envelope-from list@rachinsky.de) Date: Sat, 9 Mar 2002 00:05:27 +0100 From: Nicolas Rachinsky To: freebsd-hackers@freebsd.org Subject: bug in libutil or ppp? Message-ID: <20020308230527.GA5533@pc5.abc> Mail-Followup-To: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.27i X-Powered-by: FreeBSD X-Homepage: http://www.rachinsky.de X-PGP-Keyid: C11ABC0E X-PGP-Fingerprint: 19DB 8392 8FE0 814A 7362 EEBD A53B 526A C11A BC0E X-PGP-Key: http://www.rachinsky.de/nicolas/nicolas_rachinsky.asc X-Sender: 520067998749-0001@t-dialin.net Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hallo, I think there is an bug either in libutil's login function or in ppp. If you login via a port not in /etc/ttys (for example, i4brbch0) with ppp and utmp is enabled (the default) then ppp calls login() from libutil, login writes an entry to wtmp but not to utmp, because i4brbch0 is not in /etc/ttys and so ttyslot fails. On logout ppp checks tries to logout via libutil's logout function wich fails because there is no utmp entry, because of that ppp does not log the end of the session to wtmp. I think either should ppp write always the "logout entry" to wtmp, or login should write either both to utmp and wtmp or to none of them. Which would be the correct behaviour? Or is the present behaviour correct, and it is the users fault to use a line not mentioned in /etc/ttys? thanks Nicolas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message