[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: portable getpeercred()



Hi!

On Tue, 2011-06-07 at 17:03:46 +0200, Robert Millan wrote:
> 2011/6/7 Robert Millan <rmh@debian.org>:
> > I think a better solution would be to reuse code from:
> >
> > http://arthurdejong.org/viewvc/nss-pam-ldapd/nss-pam-ldapd/compat/getpeercred.c?view=markup
> >
> > which brings in useful portability baggage.
> >
> > Actually, it'd be great if someone made a library out of it.

We already have it in libbsd as of 0.3.0:

  <http://cgit.freedesktop.org/libbsd/tree/src/getpeereid.c>

I'd recommend people doing porting to take a look at the latest
additions to libbsd, or request new ones if they need them, as hinted
in my last mail to the list about libbsd. :)

regards,
guillem


Reply to: