Revision 8015442...
Go back to digest for 13th April 2014Bug Fixes in KDE Base
Alexander Richardson committed changes in [kcoreaddons] /lib:
Fix KUser::groups() and KUser::groupNames() on UNIX
If available we use getgrouplist() which returns all group IDs.
Otherwise we fall back to using getgrent() and checking whether gr_mem
contains the user. For some reason gr_mem doesn't usally contain the
users primary gid, so we add the corresponding struct group for that gid
as well.
REVIEW: 116881
File Changes
Added 1 files
- src/lib/util/config-getgrouplist.h.cmake
Modified 2 files
- /lib
- src/CMakeLists.txt
- src/util/kuser_unix.cpp
3 files changed in total