One thing I did before starting the search was to `setpwent` to avoid perform the lookout from a dirty state, and possibly giving a wrong "user not found" return.

But that's just for security, if we trust people, they would have called `endpwent` whenever they mess up with the global state :smile: :pray: