RFC: lastlog access function

H. J. Lu hjl@lucon.org
Wed Aug 6 19:20:00 GMT 2003


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.



More information about the Libc-alpha mailing list