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
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