[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: using system groups in svnaccess.conf

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Thu, 17 Apr 2014 15:28:46 +0100

Philip Martin <philip.martin_at_wandisco.com> writes:

> Stefan Sperling <stsp_at_elego.de> writes:
>
>> The 'pool' parmeter is unused.
>>
>>> + struct group *grp;
>>> + char **gmem;
>>> +
>>> + if ((grp = getgrnam(group)) == NULL)
>>
>> It would be nice if APR offered an interface to this function.
>> I checked but couldn't find one.
>
> APR has apr_gid_t, apr_gid_get(), apr_gid_name_get(), etc. Could we use
> those?

No, probably not. We could get the user's group ID and match that, but
I don't think we could ask whether the user is part of an arbitrary
group.

Does Windows offer a comparable concept? If so then we should attempt
to write the Subversion code using a generic API we can push to APR.

-- 
Philip Martin | Subversion Committer
WANdisco // *Non-Stop Data*
Received on 2014-04-17 16:29:19 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.