Re: setpassent(1) not working

2013-11-16 Thread Philip Guenther
On Thu, Nov 14, 2013 at 1:00 PM, Erik Lax wrote: > I noticed that setpassent(1) probably doesn't work as intended, as this > program should open the spwd.db file once, not four times? ... > This following patch fixes this. This has been committed; thanks! Philip Guenther

setpassent(1) not working

2013-11-14 Thread Erik Lax
Hi, I noticed that setpassent(1) probably doesn't work as intended, as this program should open the spwd.db file once, not four times? int main() { setpassent(1); getpwnam("root"); getpwnam("root"); getpwuid(0); getpwuid(0); return 0; } It seems to be due to faulty logic