getgrouplist(3) vs. getgroups(3)
Roland Illig
roland.illig at gmx.de
Fri Jul 22 08:20:07 UTC 2005
Roland Illig wrote:
> Why do we use getgrouplist(3) at all? What we're interested in are the
> permissions of the current process, not what's in the system-wide database.
After applying this patch, everything works as usual.
Why have we used a GTree for storing the group IDs of the process? In my
case, there are only three group IDs. Therefore the linear search is
much faster than a tree lookup.
$ id -G
100 0 5
$ id -Gn
users wheel operator
Roland
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: getgroups.patch
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20050722/bf4392f7/attachment.ksh>
More information about the mc-devel
mailing list