Re: Get a user's all groups

2024-01-13 Thread Daniel Sahlberg
Den tis 2 jan. 2024 kl 14:20 skrev Joe Orton : > On Tue, Jan 02, 2024 at 02:00:00PM +0100, Daniel Sahlberg wrote: > > My idea was to incrementally improve the code but maybe a better way > > is to switch to access() completely. access() seems to be widely > > available but I will have to read up

Re: Get a user's all groups

2024-01-02 Thread Joe Orton
On Tue, Jan 02, 2024 at 02:00:00PM +0100, Daniel Sahlberg wrote: > My idea was to incrementally improve the code but maybe a better way > is to switch to access() completely. access() seems to be widely > available but I will have to read up on the setuid properties to make > sure we don't

Re: Get a user's all groups

2024-01-02 Thread Daniel Sahlberg
Den tis 2 jan. 2024 kl 12:03 skrev Joe Orton : > On Tue, Dec 26, 2023 at 07:17:51PM +0100, Daniel Sahlberg wrote: > > Hi, > > > > apr_uid_current() can retur the user id and primary group id of a user. > Is > > there a way to find out if a user also has secondary groups (something > > similar to

Re: Get a user's all groups

2024-01-02 Thread Joe Orton
On Tue, Dec 26, 2023 at 07:17:51PM +0100, Daniel Sahlberg wrote: > Hi, > > apr_uid_current() can retur the user id and primary group id of a user. Is > there a way to find out if a user also has secondary groups (something > similar to getgrouplist(3)? > > The Subversion project has some bug