Subject: Re: CVS commit: src
To: None <email@example.com>
From: Simon Burge <firstname.lastname@example.org>
Date: 04/25/1999 18:21:00
Luke Mewburn wrote:
> Module Name: src
> Committed By: lukem
> Date: Sun Apr 25 07:54:01 UTC 1999
> Modified Files:
> src/lib/libc/gen: getpwent.c
> Log Message:
> change getpwent() backends so that a flag (per source) is set once the
> source has been exhausted. this allows getpwent() across multiple
> sources (e.g, ``passwd: files nis'') to work correctly. the flags are
> reset in setpassent()/endpwent().
> this fixes a bug noted in [lib/7449] by thorpej, and tracked down to
> getpwent() as being the culprit by simonb.
Without looking at your fix, is there scope for a user name being
returned more that once if it exists in more than one source? Is
there a standard for getpwent() that defines this behaviour?