Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Mar 2002 00:05:27 +0100
From:      Nicolas Rachinsky <list@rachinsky.de>
To:        freebsd-hackers@freebsd.org
Subject:   bug in libutil or ppp?
Message-ID:  <20020308230527.GA5533@pc5.abc>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020308230527.GA5533>