This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: RFC: lastlog access function
On Wed, Aug 06, 2003 at 10:28:47AM -0700, Ulrich Drepper wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> H. J. Lu wrote:
>
> > There are only very few programs which use "struct lastlog".
>
> I'm not deliberately breaking the API forno reason other than preventing
> possible problems. Programmers aren't supposed to be stupid; if they
> are, it's their and their user's problem.
>
We did an audit. Only login in util-linux and lastlog in shadow-utils
access /var/log/lastlog. I won't call a "struct lastlog" without
access functions nor documentation an API. Modifying login and lastlog
to use a new library with access functions is very trivial.
H.J.