Re: Gah! Any real world Open Directory examples?
Re: Gah! Any real world Open Directory examples?
- Subject: Re: Gah! Any real world Open Directory examples?
- From: David Nedrow <email@hidden>
- Date: Fri, 23 Mar 2007 12:24:09 -0400
On Mar 23, 2007, at 12:18, Jason Townsend wrote:
If all you need is the shell, you could consider using getpwnam().
char *shell;
struct passwd * userRec;
userRec = getpwnam(username);
shell = strdup(userRec.pw_shell);
That's not a bad idea. Thanks.
-David
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden