Subject: Re: getpwnam(3) and getting a users home directory
To: Anders Dinsen <anders@dinsen.net>
From: Bill Sommerfeld <sommerfeld@orchard.arlington.ma.us>
List: netbsd-users
Date: 03/17/2001 18:13:06
what luke said.. getpwnam() != getpwent()
getpwent() walks through the password "file" one record at a time,
while getpwnam()/getpwuid() gets you the one you're looking for.
- Bill